- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-01-2018 10:13 PM
This is similar to https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Adobe-Target-directly-on-site-and-Adobe... , however the case is different as we will get the Visitor API Call AND Target on the site itself (not implemented via Tealium), all before Tealium's utag.js loads which executes Adobe Analytics.
How can I make sure that this will work?
Specifically, I want to
1. prevent yet another call to the Visitor API in the Adobe Analytics tag (how can I make Analytics use the Visitor ID that was already generated through the Visitor API call on the site?
2. Still have the Adobe Analytics tag make a Visitor API call in case the site has not made the Visitor API call successfully (or we are on one of our subsites without Target)?
Using Tealium's Target beta tag did not work for us as we load Tealium's utag.js at the bottom of the body and there was still some considerable flickering due to that (the effect of that Tag which "whitens" the page came too late, so we had the page load, then get white and then reappear again).
Solved! Go to Solution.
02-02-2018 05:51 AM
Hi @loldenburg,
So to take this in order:
window.Visitor.getInstance("XXXXXXXXXXXXXXXXXXXxx@AdobeOrg").getMarketingCloudVisitorID();
Hope that helps,
Adrian
02-02-2018 07:08 AM
02-02-2018 08:10 AM
Sorry didn't mean to mix my terminology. Very simply map the grabbed mcid value to the Adobe Analytics tag.
Adrian
02-02-2018 08:22 AM
02-02-2018 08:57 AM
Hi @loldenburg
I'm glad you got me to double check. The "better" solution is to do this in a scoped extension. And not mappings.
window[<your "s" object>].visitor = window.Visitor.getInstance("XXXXXXXXXXXXXXXXXXXxx@AdobeOrg");
That way when the call to Adobe goes out the correct referencing is done.
This only needs to be done, if the inline visitor service has worked, else the Tealium tags will sort this out themselves.
I'll put in a request to get those tags updated to the latest version for you as well.
Adrian
02-05-2018 10:00 AM - edited 02-05-2018 10:03 AM
Ok, thanks, @adrian_browning.
It seems to work, but I had quite a struggle finding out how to set the customerIDs. The documentation on the Visitor API via Tealium should be updated: https://community.tealiumiq.com/t5/iQ-Tag-Management/Implementing-the-SiteCatalyst-Visitor-API/ta-p/... . Right now it covers only the old SiteCatalyst tag which hopefully noone uses anymore ;). Somewhere it should also be shown how to set the Customer Authentication States with some examples.
For the case at hand, my impression is that:
a) if we want to set CustomerIDs and the Visitor API loads inline (not via Tealium iQ), we need to set the CustomerIDs in an Extension scoped to the Adobe Analytics tag (and there, doing as you said: getting the visitor object via
window[<your "s" object>].visitor = window.Visitor.getInstance("XXXXXXXXXXXXXXXXXXXxx@AdobeOrg");
and then setting the different customerIDs:
window[your "s" object].visitor.setCustomerIDs({
// as documented by Adobe here: https://marketing.adobe.com/resources/help/en_US/mcvid/mcvid_setcustomerids.html
});
b) if we want to set CustomerIDs and the Visitor API loads via Tealium iQ's Marketing Cloud Visitor ID Service, we need to set the CustomerIDs via mapping in that Visitor ID Tag or via an Extension scoped to that tag.
An Extension is imho also the only way to set the correct Authentication States (because those are not strings like the IDs,but objects).
Example:
if (b["user_loggedin"] === "n") { b["user_loggedin"] = Visitor.AuthState.AUTHENTICATED; } else { b["user_loggedin"] = Visitor.AuthState.LOGGED_OUT; }
(and then map user_loggedin to the Authentication State variable of the respective customerID in the MC Visitor ID Service Tag)
I am sure there will be others with similar issues, so as I said, I think it would make sense to add this to the Knowledge Base and link to it from the MC Visitor ID Service Tag in some form.
02-06-2018 03:21 AM
Hi @loldenburg
I've requested that we get that document updated with the latest Adobe Analytics Tag, and using the Adobe Marketing Cloud ID Service as well.
I will agree, looking the mapping toolbox for the AMCIDS tag, is somewhat a bit confusing around this, however, you can specify when you select authState, the "customerID" (authState) would have the string literal of e.g. "AUTHENTICATED" which will then be converted into the relevant authState object. I've also raised a request to get this updated so it is more user-friendly.
Adrian
02-06-2018 08:04 AM
Thanks, but I cannot specify a string literal there. I can only say "authState" should have the value of a UDO variable, e.g. "user_loggedin".
Or do you mean that if the value of "user_loggedin" contains "AUTHENTICATED", Tealium would convert it into the object Visitor.AuthState.AUTHENTICATED?
02-06-2018 08:13 AM
02-06-2018 08:22 AM
Completely agree, hence I have requested the Mapping toolbox & documentation be updated for this.
Adrian
02-06-2018 08:40 AM
02-06-2018 08:50 AM
Copyright All Rights Reserved © 2008-2023