The easiest way to track product analytics with python.
Project description
waitlyst-python is a lightweight python library for tracking product analytics.
- Track every event on your app
- Understand your users and how to improve your product
Documentation
Please visit https://waitlyst.co/docs to view the complete documentation.
Getting Started
This module is distributed via pypi. You can install it using pip:
pip install waitlyst-python
Tracking product analytics
Using waitlyst-python:
from waitlyst.index import Waitlyst
waitlyst = Waitlyst('YOUR_SECRET_KEY')
# Before tracking any event, you need to identify the user
waitlyst.identify('USER_ID')
waitlyst.identify('USER_ID', {
'firstName': 'John',
'lastName': 'Doe',
'email': 'test@example.com'
})
# or you can use an anonymous id if you don't have a user id
# when you identify a user with an anonymous id, waitlyst will automatically
# reconcile the user in your dashboard
waitlyst.set_anonymous_id('ANONYMOUS_ID')
# Tracking pageviews
waitlyst.page('Home Page')
waitlyst.page('/homepage')
waitlyst.page('/homepage', {
'url': 'https://example.com/homepage/',
'title': 'Home page'
})
# Track a custom event
waitlyst.track('itemPurchased', {
"price": 3000,
"id": '1234',
"quantity": 1
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
waitlyst-python-1.4.5.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for waitlyst_python-1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0c17e7e5b117b92a0a8f3303282b5adfb90e571a78575d122b9bd074ceea2c |
|
MD5 | 647e64addd4d241352d6178529a72f73 |
|
BLAKE2b-256 | 7ea49ae80c49a0980a165ae88832f6cc2c9cd44d13d5e3b62d83cfd31acf04f9 |