「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK | BCS 「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK | BCSBCS

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

Adobe Analytics BCS 4 weeks ago (05-19) 216 Views 0 Comments

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:

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

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:

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

 

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.

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

 

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:

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

 

If I want to exclude link click tracking, I only need to add:

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK

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:

「Adobe Analytics」Remove Automatic Tracking Link Click in Web SDK


If you don't understand, You can leave a comment below.
Like (0)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website