File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Typical usage usually looks like this:
2121 mp = Mixpanel(YOUR_TOKEN, consumer=AsyncBufferedConsumer())
2222
2323 # tracks an event with certain properties
24- mp.track('button clicked ', {'color' : 'blue', 'size': 'large'})
24+ mp.track('distinct_id', 'event name ', {'color' : 'blue', 'size': 'large'})
2525
2626 # sends an update to a user profile
2727 mp.people_set(USER_ID, {'$first_name' : 'Amy', 'favorite color': 'red'})
@@ -58,7 +58,7 @@ consumer = AsyncBufferedConsumer()
5858mp = Mixpanel(YOUR_TOKEN , consumer = consumer)
5959
6060# tracks an event with certain properties
61- mp.track(' button clicked ' , {' color' : ' blue' , ' size' : ' large' })
61+ mp.track(' distinct_id ' , ' event name ' , {' color' : ' blue' , ' size' : ' large' })
6262
6363consumer.flush(async = False )
6464# all events are flushed and process ends
You can’t perform that action at this time.
0 commit comments