Regarding the variables, thanks I found out a few things regarding this in the meantime as well; not all are documented properly though:
- g can be set with s.pageURL. Changing document.location.href is something we cannot do as SPAs use this for their routing as well
- r can be set with s.referrer
For the activityMap I use this code snipped:
if (typeof s.ActivityMap === 'object') {
s.ActivityMap.link = function() {
return false;
};
}
Regarding IP, this happens already on the cloud, so the IP was already sent out of my country to a server somwhere. Big no-go in banking and insurance companies. The only way to prevent the IP to be propagated is a proxy and that is not a limitation of Adobe but just how http works.