Hello everyone,
We are currently using "Click data collection" to track links automatically. However, we would like to add the page name and a custom dimension, which are available as data elements, to the network call. I have attempted to add them using this code in "On before link click send callback," but haven't succeeded.
Can someone help me out here? Am I in the right place for this?
Thank you.
if (content.clickedElement /* add any other conditions you need */) {
content.xdm.web.webInteraction.name = _satellite.getVar('pageName');
content.xdm.CustomDimensions.Evars.eVar1 = _satellite.getVar('pageName');
}
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Any good samaritan? 🙂
Views
Replies
Total Likes
Unfortunatly this is not possible, look here:
in any case, it should be
content.xdm._experience.analytics.customDimensions.eVars.eVar1
but it's not available
Views
Replies
Total Likes
Hello @mikipk is this still an issue for you?
Views
Replies
Total Likes
@mikipk @mauriziocoroadobe I have posted a solution to this on another post, hopefully you find it useful, you can find this within the comments section🙂
Views
Replies
Total Likes