Created
September 15, 2014 13:40
-
-
Save shostelet/cf98bd7618a92967e7c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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