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.
Solved! Go to Solution.
Views
Replies
Total Likes
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
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.
Views
Replies
Total Likes
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