How to send data from a GTM Server-Side container to Batch?
Here is how to send events from a GTM Server-Side container to Batch using a custom HTTP Request tag.
Prerequisites
Step 1: Expose the Batch identifier in the dataLayer
// Run client-side, after the Batch SDK has initialized
batchSDK(function(api) {
api.getInstallationID().then(function(installationId) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ batch_installation_id: installationId });
});
});Step 2: Create the dataLayer variables in your sGTM container
Step 3: Create the custom HTTP Request tag
Key
Value
Step 4: Set the trigger
Step 5: Test and publish
Notes
Last updated

