Skip to main content

Installation

Initialize

Configuration

Track Events

You must provide a distinct_id for all events.

Import Historical Events

For events older than 5 days:

User Profiles

Group Analytics

Send Events

Set Group Properties

Privacy Controls

EU Data Residency

India Data Residency

Geolocation

The Python SDK sets IP to 0 by default, meaning geolocation is not tracked unless explicitly included.

Platform Considerations

All server-side calls originate from your server’s IP. Set $ip to 0 to disable geolocation or provide user’s actual IP.
  • You manage distinct_id yourself
  • No automatic identity management
  • IP defaults to 0 (no geolocation)
  • Use .import_data() for historical events
  • Designed for scripting and batch operations

Resources