Issue
When using the AEP Web SDK extension for server-side tracking, if you check Enable click data collection, you can implement some default tracking, such as exit tracking and download tracking:
At the same time, link clicks will be tracked. The link here refers to the link within the site. For example, when you click on the link within the site, you can see a 204 request, such as:
It starts with “collect” and this type of request indicates built-in tracking, which means Non-interactive event.
So how to turn off these specific tracking?
Solution
There are several ways to do this:
Turn off Enable click data collection
Turn off Enable click data collection in the AEP WebSDK extension. If you want to track specific locations, use configuring specific rules to track.
On before link click send callback
On before link click send callback The callback allows you to register a JavaScript function that can change the link tracking data you send before sending the data to Adobe. If it returns false, then the data is not sent, that is, the data is not tracked.
The setting location is in the AEP WebSDK extension:
If I want to exclude link click tracking, I only need to add:
The logic of xdm.web.webInteraction.type is download>exit>others, If you don’t want to track link clicks on the site, return false for others.
Verification Test: