Activity Map - s.ActivityMap.regionExclusions | Community
Skip to main content
December 22, 2022
Solved

Activity Map - s.ActivityMap.regionExclusions

  • December 22, 2022
  • 1 reply
  • 1075 views

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.

Any help to solve this would be appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ricardo-33

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

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 22, 2022

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.

Ricardo-33AuthorAccepted solution
December 22, 2022

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