• This documentation is for an old version of this tracker!
  • Contents
  • 1. Overview
  • 2 Initialization
  • 2.1 Importing the module
  • 2.2 Creating a tracker
  • 2.2.1 emitters
  • 2.2.2 subject
  • 2.2.3 namespace
  • 2.2.4 app_id
  • 2.2.5 encode_base64
  • 3. Adding extra data: The Subject class
  • 3.1 Change the tracker's platform with set_platform
  • 3.2 Set user ID with set_user_id
  • 3.3 Set screen resolution with set_screen_resolution
  • 3.4 Set viewport dimensions with set_viewport
  • 3.5 Set color depth with set_color_depth
  • 3.6 Set timezone with set_timezone
  • 3.7 Set the language with set_lang
  • 3.7 Tracking multiple subjects
  • 4. Tracking specific events
  • 4.1 Common
  • 4.1.1 Custom contexts
  • 4.1.2 Optional timestamp argument
  • 4.1.3 Tracker method return values
  • 4.2 Track screen views with track_screen_view()
  • 4.3 Track pageviews with track_page_view()
  • 4.4 Track ecommerce transactions with track-ecommerce-transaction()
  • 4.5 Track ecommerce transactions with track_ecommerce_transaction_item()
  • 4.6 Track structured events with track_struct_event()
  • 4.7 Track unstructured events with track_unstruct_event()
  • 5. Emitters
  • 5.1 The basic Emitter class
  • 5.2 The AsyncEmitter class
  • 5.3 The CeleryEmitter class
  • 5.4 The RedisEmitter class
  • 5.5 Manual flushing
  • 5.6 Multiple emitters
  • 5.7 Custom emitters
  • 6. Contracts
  • 7. Logging
  • 8. The RedisWorker class