• 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 User fingerprinting
  • 2.2.8 Setting the user fingerprint seed
  • 2.2.9 Setting the page unload pause
  • 2.2.10 Setting the event request protocol
  • 2.2.11 Altering cookies
  • 2.2.12 Configuring localStorage
  • 2.2.13 Adding predefined contexts
  • 2.2.13.1 performanceTiming context
  • 2.2.13.2 gaCookies context
  • 2.2.13.3 geolocation context
  • 2.2.14 POST support
  • 2.2.15 Disabling cookies
  • 2.2.16 Configuring cross-domain tracking
  • 2.2.17 Configuring the maximum payload size in bytes
  • 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.3.3 Configuring cookie timeouts using setSessionCookieTimeout
  • 2.4 Setting onload callbacks
  • 2.5 Managing multiple trackers
  • 2.6 How the Tracker uses cookies
  • The session cookie
  • The ID cookie
  • The Clojure Collector cookie
  • 2.7 Getting the user ID from the Snowplow cookie
  • 2.8 How the Tracker uses localStorage