@@ -45,8 +45,8 @@ def failed(status, msg):
4545 raise Exception (msg )
4646
4747
48- def track ():
49- posthog .track (options .distinct_id , options .event , anonymous_id = options .anonymousId ,
48+ def capture ():
49+ posthog .capture (options .distinct_id , options .event , anonymous_id = options .anonymousId ,
5050 properties = json_hash (options .properties ), context = json_hash (options .context ))
5151
5252
@@ -55,21 +55,11 @@ def page():
5555 properties = json_hash (options .properties ), context = json_hash (options .context ))
5656
5757
58- def screen ():
59- posthog .screen (options .distinct_id , name = options .name , anonymous_id = options .anonymousId ,
60- properties = json_hash (options .properties ), context = json_hash (options .context ))
61-
62-
6358def identify ():
6459 posthog .identify (options .distinct_id , anonymous_id = options .anonymousId ,
6560 traits = json_hash (options .traits ), context = json_hash (options .context ))
6661
6762
68- def group ():
69- posthog .group (options .distinct_id , options .groupId , json_hash (options .traits ),
70- json_hash (options .context ), anonymous_id = options .anonymousId )
71-
72-
7363def unknown ():
7464 print ()
7565
@@ -84,11 +74,9 @@ def unknown():
8474log .addHandler (ch )
8575
8676switcher = {
87- "track " : track ,
77+ "capture " : capture ,
8878 "page" : page ,
89- "screen" : screen ,
90- "identify" : identify ,
91- "group" : group
79+ "identify" : identify
9280}
9381
9482func = switcher .get (options .type )
0 commit comments