How to track the exit links in WEBSDK? | Community
Skip to main content
gautham_madala
Level 5
June 27, 2025
Solved

How to track the exit links in WEBSDK?

  • June 27, 2025
  • 2 replies
  • 576 views

I am trying to track exit links in websdk but even though I have enabled everything I am not able to see it. 

 


Please let me know what else needs to be done

 

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

There is a "filter click details" button at the bottom of your screenshot that opens a custom code editor. I'd suggest placing some debug code in there. This is the what's getting called from the automatic click tracking and you can add modifications in there e.g., check if the domain an exit link points to is considered your own and rewrite the link type, etc.

2 replies

KumarRishii
Level 5
June 28, 2025

@gautham_madala If external link tracking is enabled, open the browser's Network tab and click on an external link on your website. Verify if a request with eventType set to web.linkClick is being sent. If no such request appears, there may be an issue with event dispatching.

gautham_madala
Level 5
June 28, 2025

I tried a couple different ways. 
It has to do so something with the callback script that I have to custom code. 
However for now other/download works 
Trying to figure out how exit link tracking is gonna work
Thanks

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 30, 2025

There is a "filter click details" button at the bottom of your screenshot that opens a custom code editor. I'd suggest placing some debug code in there. This is the what's getting called from the automatic click tracking and you can add modifications in there e.g., check if the domain an exit link points to is considered your own and rewrite the link type, etc.

Cheers from Switzerland!
Asheesh_Pandey
Community Advisor
Community Advisor
June 29, 2025

@gautham_madala The Web SDK automatically tracks clicks on <a> and <area> elements inside open Shadow DOMs. However, clicks inside closed Shadow DOMs are not tracked, as their internal structure is hidden from JavaScript code operating outside the component. You may want to implement custom solution if that is the case.

- Asheesh