We use to track event in App only, now we want to integrate and track event at Backend also(to get a more accurate event tracking since some event happen only on backend side)
We have read through most of the doc in the internet but we are still very unclear on how should we be able to track event at backend. We have saw a lot of document urging us to create alias for a distinct id, but there are none describing how can we use it on backend where there are no identify method for us to call🙈
Simply say, given we create an alias `HK#1234` for a distinct id `xxxxxxxxxxxxx`, can we just track event with distinct_id assigned to `HK#1234` in Backend SDK/API call?
# given distinct_id = 'xxxxxxxxxxxx'
# and alias 'HK#1234' is created for this distinct_id
tracker = Mixpanel::Tracker.new(project_token)
result = tracker.track('HK#1234', event_name, properties)
- we are using ruby in BE and we are using the gem `mixpanel-ruby`.
- we do not keep the original random string’s distinct_id since this is from client side and we really don’t want to do so.