Skip to content

Instantly share code, notes, and snippets.

@SamyPesse
Created October 6, 2013 22:00
Show Gist options
  • Save SamyPesse/6859673 to your computer and use it in GitHub Desktop.
Save SamyPesse/6859673 to your computer and use it in GitHub Desktop.
Track cigarettes to Reportr
# Find the rpeortr.py in examples/python
from reportr import Reportr
# Create a Reportr Client
client = Reportr(
host="http://www.reportr.io",
token="--token--")
# Define model for our event
client.model("like", "cigarette",
name="Cigarettes I smoke",
description="Number of cigarettes I smoke.",
icon="$message")
# Track an event
client.track("life", "cigarette", properties={
"n": 1
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment