Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Analytics Champion Program are open!
SOLVED

Activity Map - s.ActivityMap.regionExclusions

Avatar

Level 2

I created a rule in Launch to fire only in this page that PII information is getting captured by Activity Map, and I'm using s.ActivityMap.regionExclusions to exclude the div that contains the class 'billing-address-details', the link that I want to not be captured is in this class.

s.ActivityMap.regionExclusions = 'billing-address-details';

This value is still captured and showed in Activity Map Link report. In debugger it shows its value.

Ricardo33_0-1671725227918.png

Any help to solve this would be appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Doing a console.log I noticed that I used the wrong class, it should be 'data-address' instead.

s.ActivityMap.region = function(clickedElement) {
    var regionClass;
    while (clickedElement && (clickedElement = clickedElement.parentNode)) {
        regionClass = clickedElement.className;
        if (regionClass) {
            console.log(regionClass.toLowerCase());
            return regionClass;
        }
    }
}

s.ActivityMap.regionExclusions = 'data-address';

  Now I'm not getting that link in Activity Map Link

View solution in original post

2 Replies

Avatar

Community Advisor

Probably a silly question, but since I can't see it... is your activity map region for that link being recorded a "billing-address-details" (there are no empty spaces, or there isn't a region superseding that value)?

 

Just trying to weed out those possibilities first.

Avatar

Correct answer by
Level 2

Doing a console.log I noticed that I used the wrong class, it should be 'data-address' instead.

s.ActivityMap.region = function(clickedElement) {
    var regionClass;
    while (clickedElement && (clickedElement = clickedElement.parentNode)) {
        regionClass = clickedElement.className;
        if (regionClass) {
            console.log(regionClass.toLowerCase());
            return regionClass;
        }
    }
}

s.ActivityMap.regionExclusions = 'data-address';

  Now I'm not getting that link in Activity Map Link