Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
feat(tracking-barriers): track barrier messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
doramatadora committed Jul 5, 2017
1 parent 9e0de97 commit 489a075
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/n-ui/tracking/ft/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const oTrackingWrapper = {

const offers = document.querySelectorAll('[data-offer-id]');
const acquisitionContext = document.querySelectorAll('[data-acquisition-context]');
const messaging = barrierType.getAttribute('data-barrier-messaging');

const barrierReferrer = (/barrierReferrer=(\w+)/.exec(window.location.search) || [])[1];

Expand All @@ -140,6 +141,7 @@ const oTrackingWrapper = {
opportunity: opportunity,
barrierReferrer: barrierReferrer,
type: barrierType.getAttribute('data-barrier'),
commsType: messaging,
acquisitionContext: nodesToArray(acquisitionContext).map(e => e.getAttribute('data-acquisition-context')),
offers: nodesToArray(offers).map(e => e.getAttribute('data-offer-id'))
}, context));
Expand Down

0 comments on commit 489a075

Please sign in to comment.