I have implemented the following base collect code:
<script type="text/javascript" src="//MID.collect.igodigital.com/collect.js"></script>
<script>
_etmc.push(["setOrgId", "MID"]);
_etmc.push(["trackPageView"]);
</script>
However I don't have any idea about these code (how to implement/where to paste this code etc.):
Set User and Attributes:
<script>
_etmc.push(["setOrgId", "MID"]);
_etmc.push(["setUserInfo", {"email": "INSERT_EMAIL_OR_UNIQUE_ID"}]);
_etmc.push(["trackPageView"]);
</script>
Contact Attributes:
<script>
_etmc.push(["setOrgId", "MID"]);
_etmc.push(["setUserInfo", {
"email": "INSERT_EMAIL_OR_UNIQUE_ID",
"details": {
"name": "INSERT_VALUE_HERE",
"gender": "INSERT_VALUE_HERE",
"email": "INSERT_VALUE_HERE",
"location": "INSERT_VALUE_HERE",
"phone": "INSERT_VALUE_HERE"
}
}]);
_etmc.push(["trackPageView"]);
</script>