Troubleshooting Mixpanel Event Update Issue with $insert_id
kapa.ai I'm trying to update an existing event as explained here: https://community.mixpanel.com/x/ask-ai/cr6bowvujzmo/updating-old-purchase-events-in-mixpanel-adding-ne the issue is that it creates a new event instead of updating the existing one. $insert_id is correct. this is a spike with the code:
client = Mixpanel::Tracker.new(ENV['MIXPANEL_PROJECT_TOKEN'])
api_key = ENV['MIXPANEL_API_KEY']
distinct_id = '8ca79d94-06bf-4946-972f-dc64297b056d'
event = 'document_open'
properties = {
'$ignore_time': true,
'$insert_id': 'kzs2xfd8t1gkppal',
'slug': 'new_slug'
}
response = client.import(
api_key,
distinct_id,
event,
properties
)
puts response