Skip to main content
Sources & SDKs

Web SDK setup

Video walkthrough

Overview

The web SDK loads asynchronously, hydrates consent defaults, and batches beacons to reduce main-thread work. Configure it once in your layout or tag manager, then route events through the same schema your server uses.

Steps

  1. Add the loader script high in <head> with your workspace id.
  2. After consent updates (CMP callbacks), call tracklayer.consent(grants) before tracking.
  3. Wrap user actions with tracklayer.track(name, properties).
tracklayer.push(["track", "AddToCart", {
  sku: "SKU-2044",
  price: 48.0,
  currency: "EUR",
  cart_id: "cart_8fd2",
}]);
  1. Validate in DevTools → Network that requests hit your regional ingest host with HTTP 202 responses.

Troubleshooting

  • Ad blockers may prevent the SDK; keep server fallbacks for critical conversions.
  • Double initialization occurs if both GTM and theme inject the loader—pick one owner.
  • If parameters look null, confirm you are not stripping nested objects during serialization.

Still need help?

Reach the team for onboarding, technical escalation, and privacy workflows.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.