Skip to content

Commit 33731a6

Browse files
authored
Update head.html
1 parent e27543b commit 33731a6

File tree

1 file changed

+10
-0
lines changed
  • themes/hugo-theme-cactus-plus/layouts/partials

1 file changed

+10
-0
lines changed

themes/hugo-theme-cactus-plus/layouts/partials/head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22
<html {{ with .Site.LanguageCode }} lang="{{ . }}" {{ end }}>
33

44
<head>
5+
<!-- Google tag (gtag.js) -->
6+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-W2371LM47S"></script>
7+
<script>
8+
window.dataLayer = window.dataLayer || [];
9+
function gtag(){dataLayer.push(arguments);}
10+
gtag('js', new Date());
11+
12+
gtag('config', 'G-W2371LM47S');
13+
</script>
514
<!-- Google Tag Manager -->
615
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
716
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
817
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
918
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
1019
})(window,document,'script','dataLayer','GTM-TDCXW7V8');</script>
1120
<!-- End Google Tag Manager -->
21+
1222
<meta charset="utf-8">
1323
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
1424
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)