• This documentation is for an old version of this tracker!
  • 3 Tracking specific events
  • 3.1 Pageviews
  • 3.1.1 trackPageView
  • 3.2 Track engagement with a web page over time: page pings
  • 3.2.1 enableActivityTracking
  • 3.2.2 updatePageActivity
  • 3.3 Ecommerce tracking
  • 3.3.1 addTrans
  • 3.3.2 addItem
  • 3.3.3 trackTrans
  • 3.3.4 Putting the three methods together: a complete example
  • 3.4 Social tracking
  • 3.4.1 trackSocialInteraction
  • 3.5 Campaign tracking
  • 3.5.1 Identifying paid sources
  • 3.5.2 Anatomy of the query parameters
  • 3.6 Ad tracking methods
  • 3.6.1 trackAdImpression
  • 3.6.2 trackAdClick
  • 3.6.3 trackAdConversion
  • 3.6.4 Example: implementing impression tracking with Snowplow and OpenX
  • OpenX: Snowplow impression tracking using magic macros
  • 3.7 Tracking custom self-describing (unstructured) events
  • 3.7.1 trackSelfDescribingEvent
  • 3.8 Tracking custom structured events
  • 3.8.1 trackStructEvent
  • 3.9 Link click tracking
  • 3.9.1 enableLinkClickTracking
  • 3.9.2 refreshLinkClickTracking
  • 3.9.3 trackLinkClick
  • 3.10 Form tracking
  • change_form
  • submit_form
  • focus_form
  • 3.10.1 enableFormTracking
  • 3.10.2 Custom form tracking
  • 3.11 trackAddToCart and trackRemoveFromCart
  • 3.12 trackSiteSearch
  • 3.13 trackTiming
  • 3.14 Enhanced Ecommerce tracking
  • 3.14.1 addEnhancedEcommerceActionContext
  • 3.14.2 addEnhancedEcommerceImpressionContext
  • 3.14.3 addEnhancedEcommerceProductContext
  • 3.14.4 addEnhancedEcommercePromoContext
  • 3.14.5 trackEnhancedEcommerceAction
  • 3.15 Consent tracking
  • 3.15.1 trackConsentGranted
  • 3.15.2 trackConsentWithdrawn
  • 3.15.3 Consent documents
  • 3.16 GDPR context
  • 3.17 Custom contexts
  • 3.18 Global contexts
  • 3.18.1 Context generators
  • 3.18.1.1 eventType
  • 3.18.1.2 eventSchema
  • 3.18.2 Conditional context providers
  • 3.18.3 Filter functions
  • Example
  • 3.18.4 Rulesets
  • Rule requirements
  • 3.18.5 Global contexts methods
  • 3.18.5.1 addGlobalContexts
  • 3.18.5.2 removeGlobalContexts
  • 3.18.5.3 clearGlobalContexts
  • 3.19 Error tracking
  • 3.19.1 trackError
  • 3.19.2 enableErrorTracking
  • 3.20 Setting the true timestamp
  • 3.21 Error output