From d3c5b169968f962fdd73775ae2f3a2e3bacfffd1 Mon Sep 17 00:00:00 2001 From: davenichols-DHLS <124819426+davenichols-DHLS@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:19:09 +0000 Subject: [PATCH] Update delayed.js Added Fathom Analytics code --- scripts/delayed.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/delayed.js b/scripts/delayed.js index 48bf04c1..abf1e64e 100644 --- a/scripts/delayed.js +++ b/scripts/delayed.js @@ -1,6 +1,6 @@ // eslint-disable-next-line import/no-cycle import { - sampleRUM, buildForm, isForm, loadFormDelayed, getFormMeetingConfig, + sampleRUM, buildForm, isForm, loadFormDelayed, getFormMeetingConfig, loadScript, } from './aem.js'; // Core Web Vitals RUM collection @@ -43,6 +43,10 @@ if ( loadGTM(); } +// Fathom Analytics Code +const attrsFa = JSON.parse('{"data-site": "TSVSBXOE"}'); +loadScript('https://cdn.usefathom.com/script.js', attrsFa); + function loadHubSpot() { const hsScriptEl = document.createElement('script'); hsScriptEl.type = 'text/javascript';