Repository navigation
Python tracker setup
HOME > SNOWPLOW SETUP GUIDE > Step 2: setup a Tracker > Python tracker
- 1 Overview
- 2 Integration options
- 2.1 Tracker compatibility
- 2.2 Dependencies
- 3 Setup
- 3.1 PyPI
- 3.2 pip
- 3.3 easy_install
The Snowplow Python Tracker lets you add analytics to your Python-based applications.
The tracker should be relatively straightforward to setup if you are familiar with Python development.
Ready? Let's get started.
As a programming language that lets you work more quickly and integrate your systems more effectively, Python is available in a huge number of different computing environments and platforms, from Civilization IV through Django framework to Ubuntu One.
To make the Snowplow Python Tracker work out-of-the-box with as many different Python programs as possible, we have tried to:
- Minimize external dependencies and third party libraries
- Provide setup instructions
To make the Snowplow Python Tracker work with as many different Python programs as possible, we have tried to keep external dependencies to a minimum. There are only two external dependencies currently:
- PyContracts - Python package that allows one to declare constraints on function parameters and return values.
- Requests - HTTP library
These dependencies can be installed from the package manager of the host system or through PyPi.
The Snowplow Python Tracker is published to PyPI, the the official third-party software repository for the Python programming language.
This makes it easy to either install the tracker locally, or to add it as a dependency into your own Python app.
To install the Snowplow Python Tracker locally, assuming you already have Pip installed:
$ pip install snowplow-tracker --upgradeTo add the Snowplow Tracker as a dependency to your own Python app, edit your requirements.txt and add:
snowplow-tracker ~> 0.8.0If you are still using easy_install:
$ easy_install -U snowplow-trackerDone? Now read the Python Tracker API to start tracking events.
Home | About | Project | Setup Guide | Technical Docs | Copyright © 2012-2017 Snowplow Analytics Ltd
HOME » SNOWPLOW SETUP GUIDE » Step 2: Setup a Tracker
- Step 1: Setup a Collector
-
Step 2a: Setup a Tracker
- 2.1: Setup the ActionScript 3.0 Tracker
- 2.2: Setup the Android Tracker
- 2.3: Setup the Arduino Tracker
- 2.4: Setup the Golang Tracker
- 2.5: Setup the iOS Tracker
- 2.6: Setup the Java Tracker
- 2.7: Setup the JavaScript Tracker
- 2.8: Setup the Lua Tracker
- 2.9: Setup the .NET Tracker
- 2.10: Setup the Node.js Tracker
- 2.11: Setup the PHP Tracker
- 2.12: Setup the Pixel Tracker
- 2.13: Setup the Python Tracker
- 2.14: Setup the Ruby Tracker
- 2.15: Setup the Scala Tracker
- 2.16: Setup the Unity Tracker
- Step 2b: Setup a Webhook
- Step 2c: Setup a Data Store Source
- Step 3: Setup Enrich
- Step 4: Setup alternative data stores
- Step 5: Data modeling
- Step 6: Analyze your data!
Useful resources