Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

How to track the exit links in WEBSDK?

Avatar

Level 6

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

gautham_madala_1-1751048469535.png

 


Please let me know what else needs to be done

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!


View solution in original post

4 Replies

Avatar

Level 5

@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.

Avatar

Level 6

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

Avatar

Correct answer by
Community Advisor

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!


Avatar

Community Advisor

@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.