From 9cf62c3f0b58d749db3dc226393870ef57f89e62 Mon Sep 17 00:00:00 2001 From: Billy Charlton Date: Wed, 10 Jan 2024 15:17:40 +1100 Subject: [PATCH] update gtag script content --- .vuepress/config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vuepress/config.js b/.vuepress/config.js index 6ff0ce641..09cb47ec8 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -4,8 +4,12 @@ module.exports = { evergreen: true, head: [ ['script', { src: 'https://cdn.jsdelivr.net/pyodide/v0.22.0/full/pyodide.js' }], - ['script', { async: true, src: 'https://www.googletagmanager.com/gtag.js?id=G-2DCTYTB7FB'}], - ['script', "window.dataLayer=window.dataLayer|| []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2DCTYTB7FB');"], + ['script', { async: true, src: 'https://www.googletagmanager.com/gtag/js?id=G-2DCTYTB7FB' }], + [ + 'script', + {}, + "window.dataLayer=window.dataLayer|| []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2DCTYTB7FB');", + ], ['link', { rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.2.0/css/all.css' }], ['link', { rel: 'icon', href: '/tiny-logo.png' }], [