From aa511d9de65d167185a99c37ee25c76fd6f93592 Mon Sep 17 00:00:00 2001 From: Yassine El Haddad Date: Wed, 16 Oct 2024 12:20:03 +0000 Subject: [PATCH] Removed Cookie Consent Script Google Tag Manager code already exists Adjusted formatting --- docs/.vuepress/headFunctions.ts | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/docs/.vuepress/headFunctions.ts b/docs/.vuepress/headFunctions.ts index e0f2b7c7..c3d28fdc 100644 --- a/docs/.vuepress/headFunctions.ts +++ b/docs/.vuepress/headFunctions.ts @@ -1,14 +1,6 @@ import routes from './routes.json'; export default [ - [ - "script", - { - type: "text/javascript", - charset: "UTF-8", - src: "//cdn.cookie-script.com/s/c9f81de32507a4fec1eb03ee80d0f0ed.js", - }, - ], [ "script", { @@ -23,12 +15,12 @@ export default [ "script", {}, ` - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': - new Date().getTime(),event:'gtm.js'});var 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-5BSW555'); - `, + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': + new Date().getTime(),event:'gtm.js'});var 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-5BSW555'); + `, ], [ "script",