Hello the community ! :)
I 'am tryinig to set up a litte workshop for beginners students on mixpanel in france (work as instructor in business school on marketing).
I d like to set an event that will capture the identity id of a user from collection of his email when sending the form.
- here the url of the landing page : https://www.mauricelargeron.com/formation-google-ads-copie/
- I have already integrated the mixpanel library and 3 events (pageView , Click on link and event form) via google tag manager.
- All the 3 event trigger properly : https://prnt.sc/u7b476
- But the @email is not collected when filling up the form : https://prnt.sc/u7b4pr
- Settings via GTManager seems ok with Email input is set as custom variable here: https://prnt.sc/u7b5a6
- And the mixpanel script to pull it is set as such :
<script type="text/javascript">mixpanel.identify("{{email input}}");mixpanel.people.set ({"#email":"{{email input}}"});</script>
Any tips or ressources appreciated !
Best answer by robin
Sorry guys, I’ll pass in french, it will be easier.
Bonjour
Aliais n’est plus nécessaire depuis la dernière release de merge-id.
Le tracking de l’utilisateur est moins compliqué que vous ne le pensez.
Commencez par faire un tracking .track() avant l’identify puis utilisez identify(email) pour identifier les événements faits avant et après par ce même utilisateur. A partir de là, toutes actions faites par ce même utilisateur sera affiché dans son profile explore. Les fonctions people.set() ne sont prisent en compte qu’à partir du identify.
Lorsque vous êtes en mode test, videz toujours vos cookies et localStorage. Utiliser des identify avec des id différent sur le même navigateur pour engendrer des incohérence de tracking. Il est aussi possible d’utiliser mixpanel.reset() pour vider le cache mixpanel.