From 3d91b860754ad38f89c6a2fb1d0617299a19314f Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 7 Mar 2025 00:50:43 +0700 Subject: [PATCH] feat: raw google tag manager --- layouts/partials/footer/custom.html | 4 ++-- layouts/partials/head/custom.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html index 1f00295..dbeea0b 100644 --- a/layouts/partials/footer/custom.html +++ b/layouts/partials/footer/custom.html @@ -1,4 +1,4 @@ - +height="0" width="0" style="display:none;visibility:hidden"> + \ No newline at end of file diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html index 293c47a..48c8ac5 100644 --- a/layouts/partials/head/custom.html +++ b/layouts/partials/head/custom.html @@ -1,7 +1,7 @@ - +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-MCTV2KJL'); + \ No newline at end of file