Skip to content

Commit

Permalink
Adding a field for connection effective type (#17)
Browse files Browse the repository at this point in the history
ADS-3976
  • Loading branch information
Brad Choate committed Apr 2, 2020
1 parent bbb44a8 commit 3b92aae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/mavenAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ let mavenAnalytics = Object.assign(adapter({hummingbirdUrl, analyticsType}), {
// this information over the wire, but should be able to
// cut down on bandwidth by sending all this identical
// information only once per batch.)
let connType;
if (navigator.connection) {
connType = navigator.connection.effectiveType;
}
auctionObj = {
auctionId: id,
connectionEffectiveType: connType,
contentItemId: options.contentItemId,
correlator: window.hummingbirdCorrelator,
countryCode: options.countryCode,
Expand Down

0 comments on commit 3b92aae

Please sign in to comment.