Skip to content

Commit

Permalink
Added Hubspot tracking code to all pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS committed Oct 31, 2024
1 parent 0556256 commit 6ad98c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ if (
const attrsFa = JSON.parse('{"data-site": "TSVSBXOE"}');
loadScript('https://cdn.usefathom.com/script.js', attrsFa);

// HubSpot Tracking Code
function loadHsScript() {
const hsScriptEl = document.createElement('script');
hsScriptEl.type = 'text/javascript';
hsScriptEl.async = true;
hsScriptEl.defer = true;
hsScriptEl.setAttribute('id', 'hs-script-loader');
hsScriptEl.src = '//js.hs-scripts.com/1769030.js';
document.querySelector('head').append(hsScriptEl);
}
loadHsScript();

// HubSpot Form Code
function loadHubSpot() {
const hsScriptEl = document.createElement('script');
hsScriptEl.type = 'text/javascript';
Expand Down

0 comments on commit 6ad98c6

Please sign in to comment.