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-apiKeyinstead ofdata-api-key— the SDK never starts, silently.- A hardcoded tag with
data-api-keyalready on the page — any separatewindow.b2mConfig(e.g. from GTM) is ignored. - Two tags with
data-api-keyon the same page — only the first one found is used; remove the duplicate.