• Our documentation has moved!
  • Contents
  • 1. Overview
  • 2 Initialization
  • 2.1 Importing the module
  • 2.2 Creating a Tracker
  • 3. Adding Subject data
  • 3.1 Change the tracker's platform with setPlatform
  • 3.2 Set user ID with setUserId
  • 3.3 Set screen resolution with setScreenResolution
  • 3.4 Set viewport dimensions with setViewport
  • 3.5 Set color depth with setColorDepth
  • 3.6 Set timezone with setTimezone
  • 3.7 Set the language with setLanguage
  • 4. Tracking specific events
  • 4.1 Common
  • 4.1.1 Custom contexts
  • 4.1.2 Optional timestamp & context argument
  • 4.1.3 Tracker method return values
  • 4.2 Track screen views with trackScreenView()
  • 4.3 Track pageviews with trackPageView()
  • 4.4 Track ecommerce transactions with trackEcommerceTransaction()
  • 4.4.1 Ecommerce TransactionItem with trackEcommerceTransaction()
  • 4.5 Track structured events with trackStructuredEvent()
  • 4.6 Track unstructured events with trackUnstructuredEvent()
  • 5. Sending event
  • 5.1 Using a buffer
  • 5.2 Choosing the HTTP method
  • 5.3 Method of sending HTTP requests
  • 6. Payload
  • 7. Logging