Before you begin
- A verified tracking hostname for this container.
- A Google Tag Manager web container and a server container.
- The Setup Guide open for your account-specific container values.
1. Point the server container at your tracking hostname
In your server container settings, set the server container URL to your verified tracking hostname. This is the address the server container uses to send its own requests, and it must be a hostname you control so that first-party cookie handling applies to the server side as well.
Use the exact hostname shown in the Setup Guide for this container. A hostname from a different container, or one still waiting for DNS verification, will fail at request time rather than at save time.
2. The variables the web container needs
The web container carries a Cookie Extender and a first-party cookie variable for bbd_uid. The cookie extender refreshes the identity value so it stays present across the browsing session, and the first-party variable makes the same value readable by the server container.
The integrated tracker emits these values on your site. If you add the variables by hand instead of using the ones the Setup Guide generates, check that the cookie name and domain match the tracker configuration for this container.
- Cookie Extender — Custom HTML, fires on All Pages
- First-party cookie variable — reads bbd_uid for this domain
3. The variables the server container needs
The server container reads the identity and click-ID values that the tracker collected. The Event Data variable maps external_id to the customer identifier, and the click-ID variables read the stored click identifiers so a later conversion event can carry the identifier that started the visit.
User data variables are a separate set. The Setup Guide provides ten of them, each reading from the same priority order: BBD Context first, then dataLayer, then cookies. A hash already produced by the tracker passes through unchanged; a raw email is normalized before hashing.
4. The Event Data variable and external_id
external_id is the customer identifier that ties a browser-side event to a server-side event. It must be the same value on both sides of the path — a browser event with one identifier and a server event with another are two unrelated events to the destination platform.
The bbd_uid identity value is the one BonicBD manages. The Event Data variable in the server container maps that identity to the external_id field the destination expects, so the mapping stays consistent without you editing it per event.
5. Preview the server container
Each plan includes a dedicated preview container, separate from the production one. Connect to it from GTM’s Preview and Debug panel and you will see every tag fire as it would in production, without those tags writing to your production destination data.
Use the preview container while you are building. Confirm the tag fires, the payload carries the values you expect, and the destination call returns a success, then move the same configuration to the production container.
Reviewed against the BonicBD documentation source on 2026-11-07. Dashboard labels can change; follow the current setup guide shown in your account.