Skip to content

Commit

Permalink
BCDA-8262: Add sync tag
Browse files Browse the repository at this point in the history
  • Loading branch information
austincanada committed Nov 14, 2024
1 parent 121c6b2 commit 47baccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/js/tagging.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();

(function(a,b,c,d){
a='https://tealium-tags.cms.gov/cms-general/{{ jekyll.environment }}/utag.sync.js';
b=document;c='script';d=b.createElement(c);d.src=a;
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();

function metricTagging(category, action, label) {
utag.link({ ga_event_category: category, ga_event_action: action, ga_event_label: label });
};

0 comments on commit 47baccc

Please sign in to comment.