Python

Python SDK

The Evntaly Python SDK offers a seamless and flexible way to integrate event tracking, user identification, and analytics into your backend Python applications.

Evntaly For Python

Installation

Install the Evntaly Python SDK using pip:

Initialization

Initialize the SDK with your Developer Secret and Project Token - Check Here

Tracking Events

For custom event tracking, use the track method.

User Identification

Identify a user to associate events with a specific profile.

Enabling and Disabling Tracking

You can enable or disable event tracking globally.


Methods

Method
Description
Example Usage
Available Since

track

Tracks a custom event.

evntaly.track({"title": 'Event'})

v1.0.0

identifyUser

Identifies a user for analytics.

evntaly.identify_user({"id": 'user-123'})

v1.0.0

disableTracking

Disables all event tracking.

evntaly.disable_tracking()

v1.0.0

enableTracking

Enables all event tracking.

evntaly.enable_tracking()

v1.0.0

Best Practices

  • Initialize early: Always initialize the SDK as early as possible.

  • Avoid sensitive data: Do not pass sensitive personal data directly to the SDK.

  • Monitor API limits: Regularly check API limits to avoid missing critical events.

Troubleshooting

  • Events not appearing: Check if the SDK is initialized correctly and the API tokens are valid.

  • Network errors: Ensure your network allows requests to https://evntaly.com.


Support

For additional help, contact support at support@evntaly.com.

Last updated