Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ankit_Chaudhary
Ankit_ChaudharyAccepted solution
Community Advisor
June 13, 2024

Hi @bindukumari90 

By Enabling click data collection in web SDK extension will trigger a separate link click call every time you on any element on the page along with exit and download links.

There is no additional steps required for this process however make sure you are not changing "on before link click event send callback code" in the code editor which is available after checking the "enable data collection".

 

Although it depends on your case but I would not recommend tracking all the clicks on the page(some of it might be meaningless for your business) to prevent this use this code in the "on before link click event send callback" code editor

if (content.xdm.web.webInteraction.type === "other") { return false; }

you can refer to this blog to better optimize your click implementation and some more best practices by @andrew_wathen_ 

1 reply

Ankit_Chaudhary
Community Advisor
Ankit_ChaudharyCommunity AdvisorAccepted solution
Community Advisor
June 13, 2024

Hi @bindukumari90 

By Enabling click data collection in web SDK extension will trigger a separate link click call every time you on any element on the page along with exit and download links.

There is no additional steps required for this process however make sure you are not changing "on before link click event send callback code" in the code editor which is available after checking the "enable data collection".

 

Although it depends on your case but I would not recommend tracking all the clicks on the page(some of it might be meaningless for your business) to prevent this use this code in the "on before link click event send callback" code editor

if (content.xdm.web.webInteraction.type === "other") { return false; }

you can refer to this blog to better optimize your click implementation and some more best practices by @andrew_wathen_ 

Translate