• This documentation is for an old version of this tracker!
  • 2 General parameters
  • 2.1 Loading Snowplow.js
  • 2.2 Initialising a tracker
  • 2.2.1 Setting the application ID
  • 2.2.2 Setting the platform
  • 2.2.3 Configuring the cookie domain
  • 2.2.4 Configuring the cookie name
  • 2.2.5 Configuring the cookie samesite attribute
  • 2.2.6 Configuring the cookie secure attribute
  • 2.2.7 Configuring base 64 encoding
  • 2.2.8 Respecting Do Not Track
  • 2.2.9 Opt-out cookie
  • 2.2.10 User fingerprinting
  • 2.2.11 Setting the user fingerprint seed
  • 2.2.12 Setting the page unload pause
  • 2.2.13 Setting the event request protocol
  • 2.2.14 Setting an unsecure event request protocol
  • 2.2.15 Configuring the session cookie duration
  • 2.2.16 Configuring the storage strategy
  • 2.2.17 Adding predefined contexts
  • 2.2.17.1 webPage context
  • 2.2.17.2 performanceTiming context
  • 2.2.17.3 gaCookies context
  • 2.2.17.4 geolocation context
  • 2.2.17.6 optimizelyExperiments context
  • 2.2.17.7 optimizelyStates context
  • 2.2.17.8 optimizelyVariations context
  • 2.2.17.9 optimizelyVisitor context
  • 2.2.17.10 optimizelyAudiences context
  • 2.2.17.11 optimizelyDimensions context
  • 2.2.17.12 optimizelySummary context
  • 2.2.17.13 optimizelyXSummary context
  • 2.2.17.14 parrable context
  • 2.2.18 POST support
  • 2.2.18.1 Beacon API support
  • 2.2.18.1 POST path
  • 2.2.19 Configuring cross-domain tracking
  • 2.2.20 Configuring the maximum payload size in bytes
  • 2.2.21 Automatically discover and set the root domain
  • 2.2.22 Configuring the cookies lifetime
  • 2.2.23 Tracking prerendered pages
  • 2.2.24 Limiting Local Storage queue size
  • 2.2.25 Reset Page Ping on Page View
  • 2.3 Other parameters
  • 2.3.1 Setting the user ID
  • 2.3.1.1 setUserId
  • 2.3.1.2 setUserIdFromLocation
  • 2.3.1.3 setUserIdFromReferrer
  • 2.3.1.4 setUserIdFromCookie
  • 2.3.2 Setting a custom page URL and referrer URL
  • 2.4 Setting onload callbacks
  • 2.5 Managing multiple trackers
  • 2.6 How the Tracker stores state
  • The session cookie
  • The ID cookie
  • The Clojure Collector cookie
  • 2.7 Getting the user ID from the Snowplow cookie
  • 2.8 Optional timestamp argument
  • 2.9 Preserving pageViewId