Install
One line in your <head> — that's it
Web SDK
A lightweight, privacy-focused JavaScript library that tracks page views, sessions and custom events — with built-in A/B testing — and streams it all into B2Metric IQ.
Drop in one script tag, optionally tune it with data-attributes, or take full control with a manual init.
One line in your <head> — that's it
Tune batching, event groups & debug via data-attributes
Full control with the b2mInit() promise
Auto-tracking gives you a baseline the moment the script loads — then opt into exactly the event groups, experiments and custom events you need.
Page views, sessions & SPA nav, for free.
The moment the script loads it tracks page views, builds a user fingerprint, manages sessions and follows single-page-app route changes — no code required.
Ten event groups. Activate only what you need.
Opt into modular groups — core, ecommerce, search and more — so you collect exactly the signals that matter and nothing you don't.
Go beyond the built-ins.
Send your own custom events with arbitrary parameters to capture the interactions unique to your product.
Assign, cache and attribute — automatically.
A built-in client requests variant assignments from the experiments service, caches them on the device, and emits exposure events so behavior is attributed to the right variant.
Capture now, send when connected.
Events recorded while the browser is offline are queued locally and flushed automatically once the connection returns.
Drop into the stack you already run.
First-class guides for WordPress and other platforms get the tracker live on existing sites without touching application code.
Every option is set on the script tag or passed to b2mInit(). Activate only the event groups that matter, tune batching, and point experiments wherever you run them.
Auto-tracked or custom, every event is sent in the same structured format — ready for funnels, retention and flows in B2Metric IQ.
From getting started to A/B testing and platform integrations — every page in the B2Metric Academy Web SDK guide.
Add one script tag, paste your API key, and watch events arrive in B2Metric IQ in real time.