I am attempting to define the user info inside the js needed to SetUserInfo for the Collect Tracking Code implementation.
<script type="text/javascript">
_etmc.push(["setOrgId", "MID"]);
_etmc.push(["setUserInfo", {"email": "INSERT_EMAIL_OR_UNIQUE_ID"}]);
_etmc.push(["trackPageView"]);
</script>
This will allow our users to be identified inside the analytics dashboard.
I understand I want to define 'subscriberkey' where it indicates "email" in the code snippet. I also understand I need to append to my URL subscriber level data such as 'subscriberkey' Is there a way to do this manually or do you have to use GA parameters to append? Has anyone successfully implemented the Collect Tracking Code with the user's defined? If so how did you do this? What is the best route to take?