Skip to main content
Cookiebot → BrazeIntegration guide

Connecting Cookiebot to Braze

Cookiebot scans your site and blocks scripts automatically by category, which means it can stop a tag you rely on without anybody deciding to. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Cookiebot consent state before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Cookiebot and the Braze Web SDK: web push needs the script

If Cookiebot blocks the Braze Web SDK, decliners cannot be asked for web push or shown in-app messages, and changeUser never merges profiles. Exclude the script from auto-blocking and initialize Braze only after Cookiebot reports consent for its category. Server-side order events keyed on external ID bypass Cookiebot, so promotional campaigns must respect stored consent.

On the web, Braze is a JavaScript SDK that registers web push, shows in-app messages and logs sessions against the user. Cookiebot may classify it as marketing. Blocked, it cannot ask for push permission or show anything, which matters more than lost analytics: your web push audience simply stops growing among decliners, and nobody notices until opt-in counts flatten.

Rather than auto-blocking, initialize the Braze SDK only after Cookiebot reports consent for the category you assigned it, and exclude the script from auto-blocking so your code controls the timing; check Braze's current options for delaying or disabling the SDK. When the visitor logs in, the SDK calls changeUser with your external ID. If that call never runs because the SDK was blocked, the anonymous web profile and the known user never merge.

Server-side events from your order system, keyed on external ID, never pass through Cookiebot. Decide whether a purchase by someone who declined marketing cookies should still reach Braze for transactional messages, which is usually defensible, and make promotional campaigns triggered by it respect the consent state you stored on the profile.

Cookiebot → Braze · what breaks

Why this join usually fails — Cookiebot → Braze

  1. 01

    The Braze external user ID never reaches Cookiebot

    Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.

  2. 02

    Automatic classification blocking the wrong script

    The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.

  3. 03

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Cookiebot → Braze · the fix

What working looks like — Cookiebot → Braze

  • The Braze external user ID on every consent record

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Cookiebot → Braze · architecture

How Cookiebot and Braze actually connect

  1. 1

    Cookiebot holds the truth

    Automatic blocking classifies scripts by scanning. A misclassified tag gets blocked for visitors who would have consented, and the loss is invisible because everything looks configured correctly.

  2. 2

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, captured at the visit and carried into the Cookiebot consent state.

  4. 4

    The event source decides reliability

    Send consented conversions, with the consent rate and the blocked-category mix reported alongside.

  5. 5

    Deduplication at the destination

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Cookiebot → Braze · normal or broken

Working vs. broken, side by side — Cookiebot → Braze

Normal, not a fault

  • The Braze external user ID present on the consent record

  • Sent from your order system, gated on consent

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID missing on most records

    Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.

  • Sent from the browser

    The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.

  • Counted twice, or not at all

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Cookiebot → Braze · diagnose

Diagnostic order — Cookiebot → Braze

  1. 01

    Count consent records carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Read the scan results and check how each of your scripts was classified

    This takes ten minutes and it is the first thing to check when conversions drop after a CMP deployment.

  4. 04

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Cookiebot → Braze · prove

How it gets proven — Cookiebot → Braze

Source of truth

Your order system, with the visitor's consent categories recorded at the time of the event.

  • The Braze external user ID confirmed present on a live consent record.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • Consented conversions reconciled against imported figures, with script classifications verified against what they collect.

Cookiebot → Braze · free audit

What we check in the free audit

  • Count consent records carrying the Braze external user ID
  • Follow one real conversion end to end
  • Read the scan results and check how each of your scripts was classified
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

Your order system, with the visitor's consent categories recorded at the time of the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cookiebot → Braze · when not to buy

When you don't need this — Cookiebot → Braze

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the Braze external user ID.
  • If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Cookiebot → Braze · what we deliver

What gets built — Cookiebot → Braze

  • Identifier capture into Cookiebot

    Verify which category your capture script is classified into, and keep capture in a category that matches what you actually collect.

  • Event source: your order system, gated on consent

    Send consented conversions, with the consent rate and the blocked-category mix reported alongside.

  • Dispatch to Braze

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

  • Reversals where they exist

    Consent withdrawal stops future sends.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with the visitor's consent categories recorded at the time of the event.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cookiebot → Braze questions, answered

Cookiebot may be blocking the Braze Web SDK for visitors who decline the category it was classified under, or before they decide. Check the scan and initialize Braze after consent instead.

Free · 30 min

Get Cookiebot and Braze joined properly

Free30 minutesNo obligation