Skip to content

Commit eeca1b7

Browse files
authored
[PD-154] - Send hosted match id (segmentio#476)
* Send hosted match id * /s/hostedMatchId/partnerProvidedId
1 parent 23155d0 commit eeca1b7

File tree

1 file changed

+4
-2
lines changed
  • integrations/doubleclick-floodlight/lib

1 file changed

+4
-2
lines changed

integrations/doubleclick-floodlight/lib/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var Floodlight = (module.exports = integration('DoubleClick Floodlight')
3131
)
3232
.tag(
3333
'doubleclick id',
34-
'<img src="//cm.g.doubleclick.net/pixel?google_cm&google_nid={{ googleNetworkId }}&segment_write_key={{ segmentWriteKey }}&user_id={{ userId }}&anonymous_id={{ anonymousId }}"/>'
34+
'<img src="//cm.g.doubleclick.net/pixel?google_cm&google_nid={{ googleNetworkId }}&segment_write_key={{ segmentWriteKey }}&user_id={{ userId }}&anonymous_id={{ anonymousId }}&google_hm={{ partnerProvidedId }}"/>'
3535
));
3636

3737
/**
@@ -51,7 +51,9 @@ Floodlight.prototype.initialize = function() {
5151
segmentWriteKey: this.options.segmentWriteKey,
5252
// TODO: handle userId being nulls/undefined.
5353
userId: this.analytics.user().id(),
54-
anonymousId: this.analytics.user().anonymousId()
54+
anonymousId: this.analytics.user().anonymousId(),
55+
// Hosted match table id https://developers.google.com/authorized-buyers/rtb/cookie-guide#match-table
56+
partnerProvidedId: btoa(this.analytics.user().anonymousId())
5557
});
5658
}
5759
this.ready();

0 commit comments

Comments
 (0)