- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-20-2018 05:43 PM
I am trying to set eVar17 to the Adobe Marketing Cloud ID.
I do this with a "set data values" extension setting a UDO element to "s.marketingCloudVisitorID"
This does not set eVar17 on initial page load, but with a subsequent utag.view() call in console, eVar17 sets just fine.
Is this a problem with referencing the s object in an extension before s is actually created? How is this done?
Thanks!
02-21-2018 01:03 PM
The way I fixed this was a set Data Values extension and set the UDO relevant UDO variable to Visitor.getInstance("A0D53D675A4612EA0A495D83@AdobeOrg").getMarketingCloudVisitorID();
unfortunately just trying to reference s.marketingCloudVisitorID does not work on pageload.
02-23-2018 12:17 PM - last edited on 02-26-2018 03:30 PM by kathleen_jo
Hi @schampernowne. You can do this by setting the eVar in the doPlugins code. The doPlugins code could be a javascript extension scoped to your adobe tag.
doPlugins() are the last thing that get called before the beacon is set. That means the Adobe tag loads, the extentions loads, doPlugins fire, then image request is sent.
03-07-2018 06:42 AM - last edited on 03-07-2018 06:56 AM by kathleen_jo
Hi @schampernowne,
An alternative would be to use the set data extension to set the evar to "D=mid" (without the quotes).
When Adobe is processing the data it will replace the D=mid to the correct value.
A second alternative is to use processing rules in Adobe to set the evar to the maketing cloud id.
Both of these would have the advantage that you are not subject to race conditions or other javascript issues.
The downside is that you are less flexible in defining fallbacks if the visitor would not have an mid...
03-07-2018 07:16 AM
Copyright All Rights Reserved © 2008-2023