Skip to content

Commit 55a580f

Browse files
committed
Updated Google Tag Manager ID and code snippets
Signed-off-by: Steve Scargall <[email protected]>
1 parent 0fe889d commit 55a580f

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tags = 'tags'
4343
description = "MemMachine is an open-source memory layer for advanced AI agents. It enables AI to learn, store, and recall data and preferences from past interactions, creating sophisticated, personalized user profiles."
4444

4545
# Your Google Analytics ID (e.g., "G-XXXXXXXXXX")
46-
googleAnalytics = "G-G0GZQH4153"
46+
googleAnalytics = "GTM-WDX7ZBC7"
4747

4848
# Enable Math Markdown
4949
math = true

themes/memmachine/layouts/_partials/head/analytics.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{{- $gaID := .Site.Params.googleAnalytics }}
88

99
{{- /* Google tag (gtag.js) */}}
10+
<!--
1011
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $gaID }}"></script>
1112
<script>
1213
window.dataLayer = window.dataLayer || [];
@@ -16,5 +17,14 @@
1617
gtag('js', new Date());
1718
gtag('config', '{{ $gaID }}');
1819
</script>
20+
-->
21+
22+
<!-- Google Tag Manager -->
23+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
24+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
25+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
26+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
27+
})(window,document,'script','dataLayer','{{ $gaID }}');</script>
28+
<!-- End Google Tag Manager -->
1929

2030
{{- end }}

themes/memmachine/layouts/baseof.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
{{ partial "head.html" . }}
55
</head>
66
<body>
7+
<!-- Google Tag Manager (noscript) -->
8+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDX7ZBC7"
9+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
10+
<!-- End Google Tag Manager (noscript) -->
711
<header>
812
{{ partial "header.html" . }}
913
</header>

0 commit comments

Comments
 (0)