PII obfuscation for Activity map in WebSDK
Hi Analytics Community,
We have implemented the following code in with AppMeasurement and was wondering if someone can help with the equivalent of the same for WebSDK
// preserve the original function, e.g. for cases where the link is *not* an email link
s.ActivityMap.originalLink = s.ActivityMap.link;
s.ActivityMap.link = function(element, linkName) {
if (element) {
// check for mailto: protocol
// alternatively, you can provide your own evaluation condition, e.g. using a regular expression to check for an email address
if (element.protocol && element.protocol === 'mailto:') {
// this is an email link
return 'email link'; // this is the ActivityMap link name
} else {
// this isn't an email link
// use ActivityMap's original function
return s.ActivityMap.originalLink(element, linkName);
}
}
};