Skip to content

Instantly share code, notes, and snippets.

@shostelet
Created September 15, 2014 13:40
Show Gist options
  • Save shostelet/cf98bd7618a92967e7c8 to your computer and use it in GitHub Desktop.
Save shostelet/cf98bd7618a92967e7c8 to your computer and use it in GitHub Desktop.
# see https://github.com/kissmetrics/py-KISSmetrics
client = KISSmetrics.Client(key=settings.KISSMETRICS_API_KEY)
identity = '[email protected]'
event_name = 'event_created'
properties = {
'total_team_events': some_value,
'total_invited_attendees': some_other_value
}
client.record(identify, event_name, properties)
# Or should I add what I send on the JS side ?
properties = {
'team_slug_name': 'FC John Doe',
'user_team_role': 'coach',
'user_is_admin': true,
'total_team_events': some_value,
'total_invited_attendees': some_other_value
}
client.record(identify, event_name, properties)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment