• 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 base 64 encoding
  • 2.2.6 Respecting Do Not Track
  • 2.2.7 Opt-out cookie
  • 2.2.8 User fingerprinting
  • 2.2.9 Setting the user fingerprint seed
  • 2.2.10 Setting the page unload pause
  • 2.2.11 Setting the event request protocol
  • 2.2.12 Setting an unsecure event request protocol
  • 2.2.13 Configuring the session cookie duration
  • 2.2.14 Configuring the storage strategy
  • 2.2.15 Adding predefined contexts
  • 2.2.15.1 webPage context
  • 2.2.15.2 performanceTiming context
  • 2.2.15.3 gaCookies context
  • 2.2.15.4 geolocation context
  • 2.2.15.5 augurIdentityLite context
  • 2.2.15.6 optimizelyExperiments context
  • 2.2.15.7 optimizelyStates context
  • 2.2.15.8 optimizelyVariations context
  • 2.2.15.9 optimizelyVisitor context
  • 2.2.15.10 optimizelyAudiences context
  • 2.2.15.11 optimizelyDimensions context
  • 2.2.15.12 optimizelySummary context
  • 2.2.15.13 optimizelyXSummary context
  • 2.2.15.14 parrable context
  • 2.2.16 POST support
  • 2.2.17 Configuring cross-domain tracking
  • 2.2.18 Configuring the maximum payload size in bytes
  • 2.2.19 Automatically discover and set the root domain
  • 2.2.20 Configuring the cookies lifetime
  • 2.2.21 Tracking prerendered pages
  • 2.3 Other parameters
  • 2.3.1 Setting the user ID
  • 2.3.1.1 setUserId
  • 2.3.1.1 setUserIdFromLocation
  • 2.3.1.1 setUserIdFromReferrer
  • 2.3.1.1 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.9 Optional timestamp argument
  • 2.10 Preserving pageViewId