Customer.io Data Pipelines (CDP) Python bindings.
Maintained. Last release 6 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity.
pip install customerio-cdp-analyticsCustomer.io Data Pipelines analytics client for Python.
Installation
Using pip:
pip3 install customerio-cdp-analytics
or you can install directly from this repo:
pip3 install git+http://github.com/customerio/cdp-analytics-python
Usage
from customerio import analytics
analytics.write_key = 'YOUR_WRITE_KEY'
analytics.track(user_id=4, event='order_complete')
Other Regions
If you're using a different data center such as our EU region, you can specify an alternate endpoint:
from customerio import analytics
analytics.write_key = 'YOUR_WRITE_KEY'
analytics.host = 'https://cdp-eu.customer.io'
analytics.track(user_id=4, event='order_complete')
Documentation
The links below contain more detailed documentation on how to use this library: