From 697f28733ac0c7a02a8632426fc460b320d9590a Mon Sep 17 00:00:00 2001 From: Austin Canada Date: Wed, 16 Oct 2024 16:28:45 -0400 Subject: [PATCH 1/2] BCDA-8262: Add tagging snippet --- assets/js/tagging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/tagging.js b/assets/js/tagging.js index 9c45220..e83c417 100644 --- a/assets/js/tagging.js +++ b/assets/js/tagging.js @@ -2,7 +2,7 @@ --- (function(a,b,c,d){ - a='https://tags.tiqcdn.com/utag/cmsgov/cms-general/{{ jekyll.environment }}/utag.js'; + a='https://tealium-tags.cms.gov/cms-general/{{ jekyll.environment }}/utag.js'; b=document;c='script';d=b.createElement(c);d.src=a; d.type='text/java'+c;d.async=true; a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a); From 47baccc318259d813d198e437355dc12a368f12f Mon Sep 17 00:00:00 2001 From: Austin Canada Date: Thu, 14 Nov 2024 13:17:41 -0500 Subject: [PATCH 2/2] BCDA-8262: Add sync tag --- assets/js/tagging.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/tagging.js b/assets/js/tagging.js index e83c417..7b2a902 100644 --- a/assets/js/tagging.js +++ b/assets/js/tagging.js @@ -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 }); };