Skip to content

Commit b75c268

Browse files
authored
Merge pull request #26 from pythonsul/add-google-tag
feat: add google tag
2 parents 9de9167 + 1504550 commit b75c268

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/layouts/_partials/footer/footer.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,14 @@
7272
{{ end }}
7373

7474
{{/* Load footer scripts */}}
75-
{{ partial "footer/js.html" }}
75+
{{ partial "footer/js.html" }}
76+
77+
<!-- Google tag (gtag.js) -->
78+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GM6V78MEDS"></script>
79+
<script>
80+
window.dataLayer = window.dataLayer || [];
81+
function gtag(){dataLayer.push(arguments);}
82+
gtag('js', new Date());
83+
84+
gtag('config', 'G-GM6V78MEDS');
85+
</script>

0 commit comments

Comments
 (0)