What sets which element in WebSDK custom link javascript code | Community
Skip to main content
Level 3
October 25, 2023
Question

What sets which element in WebSDK custom link javascript code

  • October 25, 2023
  • 1 reply
  • 782 views

 

In this example given in the https://experienceleague.adobe.com/docs/analytics/implementation/vars/functions/tl-method.html?lang=en documentation, what does the "URL" correspond to?  The url that the exit link is going to?  Or the url that the link is clicked from?  

 

alloy("sendEvent", {
  "xdm": {
    "web": {
      "webInteraction": {
        "name": "My Custom Link",
        "URL": "https://example.com",
        "type": "other"
      }
    }
  }
});

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Sarvesh_M
Adobe Employee
Adobe Employee
October 25, 2023

Hi Valerie, 

This will be the destination URL of the link, where the link takes you by clicking on it. 

More info here: https://experienceleague.adobe.com/docs/experience-platform/edge/data-collection/track-links.html?lang=en

Thanks,

Sarvesh

Level 3
October 25, 2023

Thanks!  In workspace, which data element do you pull in to see that value?  So if my custom link name is "My Example" what do I break it down by to see the destination url.

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 26, 2023

In CJA you might be able to see that natively, but in standard Adobe Analytics, you get the "Custom Link" (name) for "other" links, and the "Exit Link" (destination URL) for "exit" links... not sure why that is...

 

The information is available in the raw data, but not in workspace... in theory you could map the destination URL to a custom eVar, so that you can access the destination URL.