def tell_amplitude_account_created(user_id:int, account_id:int):
"""
server_side API to Amplitude about account_created
"""
client = Amplitude(AMPLITUDE_API_KEY)
# see
# One of user_id and device_id is required
# Track events with optional properties
# identify_obj=Identify()
# identify_obj.set("account_id", str(account_id))
# client.identify(identify_obj, EventOptions(user_id=str(user_id)))
client.track(
BaseEvent(
event_type = "account_created",
user_id = str(user_id),
event_properties = {
"signup_via": "github",
}
)
)
Under data
![](https://uploads-us-west-2.insided.com/amplitude-en/attachment/939b2340-6924-4a7d-a51e-a392bae51fcd.png)
Nothing shows up. HOw do i troubleshoot this?
Please make it easy for me to troubleshoot. I’m seriously considering to move to mixpanel if this is too difficult