Skip to content

Commit

Permalink
Fix syntax errors in gtm.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 21, 2024
1 parent 9e89d4b commit aa9ff90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/webpacker/packs/gtm.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Gtm from '../gtm'
import Gtm from '../gtm';

const gtmData = document.querySelector('[data-gtm-id]')?.dataset
const gtmData = document.querySelector('[data-gtm-id]')?.dataset;

if (gtmData != null) {
const { gtmId, gtmNonce, gtmEnabled} = gtmData
const { gtmId, gtmNonce, gtmEnabled } = gtmData;

if (gtmEnabled == 'true') {
const gtm = new Gtm(gtmId, gtmNonce)
const gtm = new Gtm(gtmId, gtmNonce);

gtm.init()
gtm.init();
}
}

0 comments on commit aa9ff90

Please sign in to comment.