google analytics

main
Basit Ali 2022-09-22 03:42:38 +05:00
parent 8296dabc09
commit 946f0f8887
2 changed files with 8 additions and 15 deletions

View File

@ -71,7 +71,7 @@ theme = "raditian-free-hugo-theme"
#sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"] #sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"]
sections = ["showcase", "about", "education", "experience", "testimonial", "contact"] sections = ["showcase", "about", "education", "experience", "testimonial", "contact"]
googleTagManagerID = "GTM-000000" # Google Analytics works with Google Tag Manager googleAnalytics = "G-075Y15YXKN" # Google Analytics works with Google Tag Manager
[params.logo] [params.logo]
text1 = "Basit" text1 = "Basit"

View File

@ -9,21 +9,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/> <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-075Y15YXKN"></script>
<script> <script>
(function (w, d, s, l, i) { window.dataLayer = window.dataLayer || [];
w[l] = w[l] || []; function gtag(){dataLayer.push(arguments);}
w[l].push({ gtag('js', new Date());
'gtm.start': new Date().getTime(),
event: 'gtm.js' gtag('config', 'G-075Y15YXKN');
});
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=GTM-000000' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-000000');
</script> </script>