Skip to main content

Post-Integration Verification

After installing, confirm the setup from your browser console:

await window.b2mReady;                      // should resolve
window.b2m.getEnabledEvents(); // are your event names listed?
window.b2mWebSDK.config.trackingMode; // the mode you expected?
window.b2mGetDeviceId(); // device identity resolved?

Then check the Network tab for a POST request to /collect carrying an x-api-key header. If you're using a dataLayer mode, also trigger a dataLayer push and confirm the resulting event reaches the collector exactly once.

Common Pitfalls​

  • data-apiKey instead of data-api-key — the SDK never starts, silently.
  • A hardcoded tag with data-api-key already on the page — any separate window.b2mConfig (e.g. from GTM) is ignored.
  • Two tags with data-api-key on the same page — only the first one found is used; remove the duplicate.