Add the GTM id
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Mary 2023-08-12 22:50:07 +01:00
parent 51625ea53f
commit 0c023eba71
3 changed files with 13 additions and 3 deletions

View File

@ -3,7 +3,7 @@ languageCode = 'en-us'
title = 'Deliciousium'
theme = 'coyote'
copyright = "Deliciousium - All rights reserved"
googleAnalytics = 'G-VRQ9V3YJSJ'
googleTagManager = ' GTM-WVR9XZSC '
[params]
logo = "/images/deliciousium.png"

View File

@ -4,6 +4,11 @@
{{- partial "head.html" . -}}
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVR9XZSC"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- Code that all your templates share, like a header -->
{{- partial "header.html" . -}}
<div class="container container-section">

View File

@ -1,8 +1,13 @@
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
{{ template "_internal/google_analytics.html" . }}
<!-- Google Tag Manager -->
<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-WVR9XZSC');</script>
<!-- End Google Tag Manager -->
{{ with .Site.Params.logo}}<link rel="icon" href="{{ . | urlize | relURL }}">{{ end }}