Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian committed Nov 5, 2024
1 parent 1d2e678 commit d0d3aa9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ async function loadAdobeLaunch() {

async function loadGA() {
const gaId = 'G-9SEQK7FPPQ';
loadGAScript(`https://www.googletagmanager.com/gtag/js?id=${gaId}`, () => {
// eslint-disable-next-line
window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', gaId);
const gaSrc = `https://www.googletagmanager.com/gtag/js?id=${gaId}`

Check failure on line 20 in scripts/delayed.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
await loadScript(gaSrc, {
type: 'text/javascript',
async: true,
});
// eslint-disable-next-line
window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', gaId);
}

store.emit('delayed:loaded');

loadCSS(`${window.hlx.codeBasePath}/styles/icons.css`);

loadAdobeLaunch();
loadGA();

0 comments on commit d0d3aa9

Please sign in to comment.