Skip to content

Commit

Permalink
Merge pull request #287 from hlxsites/286-fathom-analytics
Browse files Browse the repository at this point in the history
287 Fathom Analytics code
  • Loading branch information
davenichols-DHLS authored Jan 9, 2024
2 parents b9275aa + d3c5b16 commit 4871d6e
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 4871d6e

Please sign in to comment.