From 235ae5b8b497546450b6810a1d72a5b2d1f9acec Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Tue, 6 Aug 2024 10:51:50 +1000 Subject: [PATCH] fix/GA4-tag (#445) * Update gulpfile.js --- gulpfile.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 666b7675..0fdc9aec 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -309,8 +309,15 @@ function renamePathForProd() { function addAnalytics() { return src(`${config.dir.build}/**/*.html`) - .pipe(inject.before('', '\n')) - .pipe(inject.before('', "\n")) + .pipe(inject.after('', ` +`)) +.pipe(inject.after('', ` + `)) .pipe(dest(config.dir.build)) }