Where does the getCustomerID method called?
Does anyone have experience to set it via Ensighten or can just explain how they did it without DTM? I looked into available documentation but there are lots of gaps on how to actually do this.
Solved! Go to Solution.
Hi,
Thanks for reaching out. If you would like to call setCustomerID method without DTM in that case you need to work with VisitorAPI.js and need to embed below code:
visitor.setCustomerIDs({
"userid":{
"id":rs.web.digitalData.userId,
"authState":Visitor.AuthState.AUTHENTICATED
}
});
with in your VisitorAPI.js.
Refer below documents to Implement the Marketing Cloud ID Service for Analytics:
- https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid-setup-analytics.html
- https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid_setcustomerids.html
Hope this helps, let me know if you have any further query.
- Ankit Bhatt
Hi,
Thanks for reaching out. If you would like to call setCustomerID method without DTM in that case you need to work with VisitorAPI.js and need to embed below code:
visitor.setCustomerIDs({
"userid":{
"id":rs.web.digitalData.userId,
"authState":Visitor.AuthState.AUTHENTICATED
}
});
with in your VisitorAPI.js.
Refer below documents to Implement the Marketing Cloud ID Service for Analytics:
- https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid-setup-analytics.html
- https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid_setcustomerids.html
Hope this helps, let me know if you have any further query.
- Ankit Bhatt
Many thanks Ankit
Just a couple of questions to clarify:
1 I need to insert this code in the very end of the file, after the Visitor.getInstance function? Then we can do that easily.
2 In regards getCustomerId method - do we need use it anywhere?
Alla
Views
Replies
Total Likes
In addition to this - when I debug and test how this customer ID parameter would look like in the image request?
Views
Replies
Total Likes