Analytics
Mixpanel
Free
Simple and powerful analytics that helps everyone make better decisions.
# Fill this out
PROJECT_TOKEN = "" # Get this from mixpanel.com/settings/project
import json
import time
import requests
events = [
{"event": "my_test_event", "properties": {"time": int(time.time()), "distinct_id": "test_user_1", "$insert_id": "04ce0cf4-a633-4371-b665-9b45317b4976", "city": "San Francisco"}},
{"event": "another_event", "properties": {"time": int(time.time()), "distinct_id": "test_user_2", "$insert_id": "3b033b9a-6bc9-4b70-90c3-a53e11f6896e", "city": "Seattle"}}
]
resp = requests.post(
"https://api.mixpanel.com/import",
params={"strict": "1"},
auth=(PROJECT_TOKEN, ""),
headers={"Content-Type": "application/json"},
data=json.dumps(events)
)
print(resp.json())
Coming Soon !
Coming Soon !