From fada97c46deb13cd6a30d469408e47ad3159c4ea Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Mon, 25 Mar 2019 11:23:16 +0800 Subject: [PATCH] Add GTM tags to index.mustache & build.mustache --- gulp/build.js | 3 +++ templates/bot.mustache | 2 ++ templates/index.mustache | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gulp/build.js b/gulp/build.js index 7439507e9b..30ebffc806 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -16,6 +16,9 @@ const getConfig = prefix => ({ binary_style_img: 'image/binary-style', elevio_script : '', + gtm_head : ' ', + gtm_iframe: + ' ', }); const genHtml = min => diff --git a/templates/bot.mustache b/templates/bot.mustache index 339b21e47d..a05359fd65 100644 --- a/templates/bot.mustache +++ b/templates/bot.mustache @@ -7,6 +7,7 @@ {{> bundle_css }} {{> bot_css }} + {{> gtm_head }} @@ -175,6 +176,7 @@ {{> bundle}} {{> bot}} {{> elevio_script }} + {{> gtm_iframe }}
diff --git a/templates/index.mustache b/templates/index.mustache index dbc39e3e1d..9271a2c46a 100644 --- a/templates/index.mustache +++ b/templates/index.mustache @@ -8,6 +8,7 @@ {{> index_css }} +{{> gtm_head }} @@ -51,6 +52,7 @@ - {{> index}} + {{> index}} + {{> gtm_iframe }}