Skip to content

Commit 93daf4f

Browse files
authored
Merge pull request jsonwebtoken#441 from jsonwebtoken/feature/update-gtm
Update GTM scripts
2 parents 609387d + a2f7614 commit 93daf4f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

views/website/layout.pug

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@ html(lang='en')
3636

3737
// Chrome extension link, required for inline installs
3838
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/ppmmlchacdbknfphdeafcbmklcghghmd")
39-
body
40-
39+
4140
// Google Tag Manager
41+
script.
42+
​(f​unction(​w​,d,s,l,i​){w[l]=w[l]||[];w[l].push({​'gtm.start': new​​Date(​).getTime(),event:'​gtm.js'​});v​ar​f=d.getElementsByTagName(s)[​0]​, j=d.createElement(s),dl=l!='​ dataLayer'?​ ​'&l='+​ l:'';​ j.async=true;​ j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(​window,​​document​,'​script'​,'​dataLayer',​​'GTM-W7FRLJ')​;
43+
// End Google Tag Manager
44+
45+
body
46+
// Google Tag Manager (noscript)
47+
noscript
48+
iframe(src='https://www.googletagmanager.com/ns.html?id=GTM-W7FRLJ"', height='0', width='0', style='display:none;visibility:hidden')
49+
// End Google Tag Manager (noscript)
50+
51+
// Google Tag Manager legacy (remove soon)
4252
noscript
4353
iframe(src='//www.googletagmanager.com/ns.html?id=GTM-PT2SNS', height='0', width='0', style='display:none;visibility:hidden')
4454
script.

0 commit comments

Comments
 (0)