@thebrandboxltd/tracker
v1.1.0
Published
BrandBox web tracker — analytics + abandoned-signup recovery for any website.
Maintainers
Readme
@thebrandboxltd/tracker
Tiny JS tracker for any website — analytics + abandoned-signup recovery, fed into BrandBox.
npm install @thebrandboxltd/trackerimport * as bb from '@thebrandboxltd/tracker'
bb.init({ siteKey: 'pk_live_…' })
bb.track('signup_completed', { plan: 'pro' })
bb.identify({ email: user.email })
// On valid email blur:
bb.capture({ email: '[email protected]', source: 'signup-form' })
// On successful submit:
bb.complete()Full guide: see Documentation/16-BB-SDK-Dev-Guide.md.
How it works
This package loads https://api.brandbox.uk/v1/tracker.js and forwards calls
to the global window.BrandBox. Calls made before the script finishes
loading are queued and replayed.
— BrandBox Ltd.
