Skip to content

Commit

Permalink
Update delayed.js
Browse files Browse the repository at this point in the history
Added gtag() with createEl
  • Loading branch information
cazzaranjosh authored Dec 5, 2023
1 parent c8a084f commit a5cb10c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ createEl('script', {
async: true,
}, '', document.head);

createEl('script', {
}, `
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-Z39YF2LV3B');
`, document.head);

/* Meta */
createEl('script', {
src: 'https://connect.facebook.net/signals/config/1404641949861336?v=2.9.111&r=stable',
Expand Down

0 comments on commit a5cb10c

Please sign in to comment.