I've setup our SFMC collect code to track visits to our website and so far it is working, but we're only getting anonymous visits. I would like to track when a subscriber visits our website after clicking a link in an email and any subsequent pages they visit and bring that data back into SFMC (and SFDC) so that I can use it in a Journey and possibly in dynamic content (show them more of what they were looking at on the website). I found this page in the SFMC documentation: https://help.marketingcloud.com/en/documentation/collect_code/install_collect_code/set_user_info/
<script type="text/javascript">
_etmc.push(["setOrgId", "MID"]);
_etmc.push(["setUserInfo", {"email": "INSERT_EMAIL_OR_UNIQUE_ID"}]);
_etmc.push(["trackPageView"]);
</script>
I'm not using email as a unique Id for my subscribers, so I'm wondering if I need to:
1.) Change "email" to something else like "SubscriberID"
2.) How I can grab a fulfill the SubscriberID in the second portion of the pairing and can this be done if or only if a subscriber navigates to a page from an email link where I can pass through the subscriberId