Link tracking not tracking text of the link in Link Name
hi
I am using Web SDK and in weblinks calls, the link name is always "Link Click" and it doesn't capture the text of the link clicked.
Thanks
Parm
hi
I am using Web SDK and in weblinks calls, the link name is always "Link Click" and it doesn't capture the text of the link clicked.
Thanks
Parm
Hi,
Link name maps to web.webInteraction.name in your xdm object. If you have got that part correct, then the issue seems more about how you are capturing the link name from website, are you using vanilla javaScript 'this' keyword, or jQuery $(this). Will suggest to first test this traditionally without using web sdk.
Refer to the below code for the field where you have to map link names.
alloy("sendEvent", {
"xdm": {
"web": {
"webInteraction": {
"name": "My Custom Link",
"URL": "https://example.com",
"type": "other"
}
}
}
});
If you are using Tags (Launch) UI, go to data elements, select XDM object and map in the below field

Please refer to below documentation for more clarity
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.