Skip to content

Commit

Permalink
Update gulpfile.js (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenhitchon authored Aug 6, 2024
1 parent 3a4ad9f commit 67d3ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function renamePathForProd() {
function addAnalytics() {
return src(`${config.dir.build}/**/*.html`)
.pipe(inject.before('</head>', '<script async src="https://www.googletagmanager.com/gtag/js?id=G-TMEHXHFJXJ"></script>\n'))
.pipe(inject.before('</head>', '<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-TMEHXHFJXJ");</script>\n'))
.pipe(inject.before('</head>', "<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-TMEHXHFJXJ');</script>\n"))
.pipe(dest(config.dir.build))
}

Expand Down

0 comments on commit 67d3ea9

Please sign in to comment.