Skip to content

Commit

Permalink
Update delayed.js
Browse files Browse the repository at this point in the history
Added Fathom Analytics code
  • Loading branch information
davenichols-DHLS authored Jan 8, 2024
1 parent b9275aa commit d3c5b16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/delayed.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit d3c5b16

Please sign in to comment.