Skip to content

Customer.io Data Pipelines analytics client for Python

License

Notifications You must be signed in to change notification settings

customerio/cdp-analytics-python

 
 

Repository files navigation

Customer.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:

About

Customer.io Data Pipelines analytics client for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.5%
  • Makefile 0.5%