Hey
I am receiving events from CRM into sGTM.
We have to use phone number as a unique identifer of the user.
I am using Stape's templates for Mixpanel.
Setup
I have three tags.
- For Identify
- For Set (to set name and phone number)
- For Track
I have phone number with every event of CRM. I am sending phone number as distinct_id.
Looks like sending distinct_id is mandatory
Edit: I started sending user_id, $user_id and $device id as well in events but problem was not solved.
Screenshot of one tag
Problem
The problem is two users are being created.
First User: Profile properties set up with name and phone number I set
and No events in the profile
Second User: No profile properties are set up but there are events logged for that profile
There's a difference in distinct id as well in both users
First user has distinct id exact phone numer
but second user has distinct id starting from $device:phone number
What could be the solution to this problem? Has anyone implemented mixpanel using sGTM.
kapa.ai