I would like to try to track the user with the collect via the web and analytics tool.
I inserted the collect shown in the documentation
Basic web observation code
<script type = "text / javascript" src = "http://MID.collect.igodigital.com/collect.js"> </script>
<script type = "text / javascript">
_etmc.push (["setOrgId", "MID"]);
_etmc.push ([ '_trackPageview']);
</ Script>
copy this code and insert above "trackPageView"
_etmc.push (["setUserInfo", {"email": "INSERT_EMAIL_OR_UNIQUE_ID"}]);
Replace "INSERT_EMAIL_OR_UNIQUE_ID"
with the dynamic code to get the customer ID. A customer ID is typically an email address or custom number unique to that customer.
I tried with the mail, subscriber key and subscriber id.
But I think I'm wrong something because they are always anonymous to me.
is there any setting to do first?
thank you
trackPageView
andsetUserInfo
in same payload? SendingsetUserInfo
alone will not register the identifier with the cookie uuid.