diff --git a/index.html b/index.html old mode 100644 new mode 100755 index 353103c..f1dab0c --- a/index.html +++ b/index.html @@ -74,6 +74,16 @@ alt="" /> + + +
diff --git a/public/metrics/google-manager.js b/public/metrics/google-manager.js
new file mode 100755
index 0000000..d9ad377
--- /dev/null
+++ b/public/metrics/google-manager.js
@@ -0,0 +1,5 @@
+(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-P3Q4DBBT');
\ No newline at end of file
diff --git a/src/init.tsx b/src/init.tsx
old mode 100644
new mode 100755
index 9bb2393..25b7b2e
--- a/src/init.tsx
+++ b/src/init.tsx
@@ -52,6 +52,13 @@ const init = async () => {
document.head.appendChild(script);
};
smartLook();
+
+ const googleManager = () => {
+ const script = document.createElement("script");
+ script.setAttribute("src", "/metrics/google-manager.js");
+ document.head.appendChild(script);
+ };
+ googleManager();
return (