sGTM Client TemplateReverse ProxyFirst-PartyGDPR-Friendly

sGTM Proxy Client for Braze™

A Google Tag Manager Server-Side Client Template that serves the Braze Web SDK and proxies all Braze Requests through your own domain. Bypassing ad blockers in minutes without changing your integration.

Get the Template on Gumroad
Braze sGTM Proxy Client — configuration interface in Google Tag Manager

What is the Braze sGTM Proxy Client?

The Braze sGTM Proxy Client is a Google Tag Manager Server-Side Client Template that acts as a transparent reverse proxy for the Braze Web SDK. When a browser requests the Braze Web SDK, the template fetches and serves it from your sGTM container — under your own domain, never from Braze's CDN. When the initialized SDK makes Braze requests, those hit your sGTM endpoint, which forwards them to the configured Braze endpoint and streams the response back to the SDK. The result: all Braze network traffic runs through your domain, invisible to ad blockers, while the Web SDK continues to work exactly as before.

Key Features

Serve the Web SDK

The Braze Web SDK file is fetched and served from your sGTM endpoint. Browsers request it from your domain — never directly from Braze's CDN.

Proxy Requests

All Braze requests from the initialized SDK are forwarded to the configured Braze endpoint. Responses flow back to the browser intact.

Ad-Blocker Resistant

SDK file and requests both originate from your own domain. No Braze-specific URLs appear in browser network traffic — indistinguishable from first-party requests.

Security Hardened

Built-in API key allowlisting and origin restrictions let you control exactly which callers the proxy accepts.

1st-Party Context

All Braze traffic runs through your own sGTM server infrastructure.

Drop-In Setup

Point your SDK initialization's baseUrl to your sGTM endpoint. No changes to your existing Braze event tracking logic.

How It Works

  1. 1

    Browser requests the SDK

    The browser requests the Braze Web SDK from your sGTM container endpoint (your own domain), not from Braze's CDN.

  2. 2

    sGTM fetches and serves the SDK

    The Client Template fetches the Braze Web SDK from Braze's CDN server-side and returns it to the browser.

  3. 3

    SDK initializes and sends Braze requests

    The SDK runs as normal. Its data collection requests target your sGTM endpoint instead of Braze directly.

  4. 4

    Proxy forwards to Braze and returns the response

    The Client Template receives each Braze request, forwards it to the configured Braze endpoint, and streams the response back to the SDK.

Requirements

  • Server-Side Google Tag Manager (sGTM) container
  • Braze account with Web SDK enabled
  • Braze SDK endpoint URL (e.g. https://sdk.fra-02.braze.eu)
  • Optional: API key allowlist and origin restrictions for additional security

Frequently Asked Questions

Stop losing Braze data to ad blockers

Get the sGTM Proxy Client Template and set it up in minutes.

Get it on Gumroad
sGTM Proxy Client for Braze™ | Serve Web SDK & Bypass Ad Blockers | datapip.de