diff --git a/lib/decorators/EventPropertiesDecorator.hpp b/lib/decorators/EventPropertiesDecorator.hpp index 103c11553..dfb4d6b27 100644 --- a/lib/decorators/EventPropertiesDecorator.hpp +++ b/lib/decorators/EventPropertiesDecorator.hpp @@ -24,6 +24,7 @@ namespace MAT_NS_BEGIN { #define RECORD_FLAGS_EVENTTAG_HASH_PII 0x00100000 // #define MICROSOFT_EVENTTAG_DROP_PII 0x02000000 #define RECORD_FLAGS_EVENTTAG_DROP_PII 0x00200000 +#define RECORD_FLAGS_EVENTTAG_SCRUB_IP 0x00400000 class EventPropertiesDecorator : public IDecorator { @@ -125,6 +126,8 @@ namespace MAT_NS_BEGIN { int64_t tags = eventProperties.GetPolicyBitFlags(); int64_t flags = 0; + // Scrub/obfuscate IP addresses. + flags = RECORD_FLAGS_EVENTTAG_SCRUB_IP; // We must remap from one bitfield set to another, no way to bit-shift :( // At the moment 1DS SDK in direct upload mode supports DROP and MARK tags only: flags |= (tags & MICROSOFT_EVENTTAG_MARK_PII) ? RECORD_FLAGS_EVENTTAG_MARK_PII : 0;