← Back to Datablow
GTM Server Tag Setup Guide
Step-by-step setup documentation for the Datablow Connect Server-Side Tag for Google Tag Manager.
1. Overview of Server-Side Tagging
The Datablow Connect GTM Server Tag allows you to route incoming website events (like Page Views, Leads, and Purchases) directly from your Google Tag Manager Server Container to the Datablow Connect event forwarding router. This completely bypasses standard client-side adblockers and increases attribution accuracy up to 25%.
2. Configuring the Custom Tag in GTM
Follow these steps to set up the Datablow custom tag inside your GTM Server Container:
- Step 1 Navigate to the Templates section of your sGTM Container workspace and click New under "Tag Templates". Import the template from the gallery or paste the template code.
- Step 2 Go to the Tags section and click New to create a new tag.
- Step 3 Select the Datablow Connect Server Tag template you just imported.
- Step 4 Enter your **Datablow Tracking Endpoint** (e.g.
https://yoursubdomain.tracking.datablow.com or your custom tracking domain).
- Step 5 Enter your **Datablow Tenant ID / Site Token** (your tracking site token or Server GTM container ID from the Datablow dashboard).
- Step 6 Under Triggering, add a trigger of type All Events (or your custom filter) and save.
3. Tag Parameters Definition
💡 Note: If you provisioned your container using the Managed Gateway Setup in the Datablow dashboard, these parameters are automatically created and pre-filled for you. You only need to configure these manually if you selected a Clean Container Setup or are performing manual updates.
The template accepts the following configuration parameters:
- Datablow Tracking Endpoint (
trackingUrl): The first-party URL of your Datablow gateway server (e.g., https://GTM-XXXXXX.tracking.datablow.com). All requests are secure HTTPS POST requests.
- Datablow Tenant ID / Site Token (
tenantId): The unique routing token identifying your website. This routes events to the matching CAPI pixel integrations and database configurations.
4. Verification and Live Logs
To confirm that your sGTM container is successfully routing events through your Datablow Tag:
- Click Preview on the GTM Server workspace to start the Tag Assistant.
- Interact with your website (trigger a Page View or form lead).
- In Tag Assistant, select the event and verify that the Datablow Connect Server Tag fired successfully with a
200 OK response code.
- Check the live event dashboard in your Datablow console to see incoming events mapped in real-time.
Response Status: 200 OK
Body: {"success":true,"message":"Event recorded"}