Skip to main content

Automatic page enrichment

The browser SDK enriches page and track events with contextual information when available:
  • Page URL, path, referrer, and title
  • User agent and screen dimensions
  • Locale / campaign parameters (UTM tags)

Ready callback

Wait until plugins have finished loading:

Anonymous ID

Query string identity

When the page URL contains ajs_ parameters (for example ajs_uid, ajs_aid, ajs_trait_*, ajs_event), the SDK can apply them on load. Disable or constrain this with useQueryString in Advanced Configuration.

Source and destination middleware

Plugin system

Register custom plugins:

CDN snippet

Load the SDK without a bundler. Replace YOUR_WRITE_KEY with your write key:
The snippet queues calls (identify, track, page, middleware helpers, and more) until the library finishes loading.