Skip to content

Commit 142d803

Browse files
committed
prebid#24 Adding standard tracking of bidWon and cleanup of native creative
1 parent 847c095 commit 142d803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/id5AnalyticsAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const GVLID = 131;
2020
const STANDARD_EVENTS_TO_TRACK = [
2121
AUCTION_END,
2222
TCF2_ENFORCEMENT,
23+
BID_WON,
2324
];
2425

2526
// These events cause the buffer ed events to be sent over
@@ -251,7 +252,7 @@ CLEANUP_RULES[AUCTION_END] = [{
251252
match: ['bidderRequests', '*', 'gdprConsent', 'vendorData'],
252253
apply: 'erase'
253254
}, {
254-
match: ['bidsReceived', '*', 'ad'],
255+
match: ['bidsReceived', '*', ['ad', 'native']],
255256
apply: 'erase'
256257
}, {
257258
match: ['noBids', '*', 'userId', '*'],
@@ -282,7 +283,6 @@ function transformFnFromCleanupRules(eventType) {
282283
match = !choices.every(choice => choice !== '*' && path[fragment] !== choice);
283284
}
284285
if (match) {
285-
logInfo('id5Analytics: transforming', path, transformation);
286286
const transformfn = TRANSFORM_FUNCTIONS[transformation];
287287
transformfn(obj, key);
288288
break;

0 commit comments

Comments
 (0)