Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
ADEN-10491 Adding global Labrador DW tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Sobczak committed Aug 13, 2020
1 parent dfc9963 commit 56183bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/modules/ads/tracking/page-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const pageTracker = {
* Track page info prop values
* @param {String} name
* @param {String} value
* @param {boolean} force
* @returns {void}
*/
trackProp(name, value, force = false) {
Expand All @@ -36,6 +37,16 @@ export const pageTracker = {
timestamp: now.getTime(),
tz_offset: now.getTimezoneOffset(),
}, true, true);

if (name === 'labrador') {
track({
eventName: 'labradorpageview',
trackingMethod: 'internal',
value: value,
timestamp: now.getTime(),
tz_offset: now.getTimezoneOffset(),
}, true, true);
}
},
};

Expand Down

0 comments on commit 56183bd

Please sign in to comment.