Skip to content

Commit d71c8bb

Browse files
committed
google analytics
1 parent d9990d7 commit d71c8bb

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

_includes/footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
<div class="wrapper">
55
{%- include social.html -%}
66
</div>
7-
87
</footer>

_includes/google-analytics.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--
12
<script>
23
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
34
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -9,4 +10,15 @@
910
ga('send', 'pageview');
1011
}
1112
</script>
12-
13+
-->
14+
15+
<!-- auto-generated -->
16+
<!-- Google tag (gtag.js) -->
17+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z8G0YWTNLM"></script>
18+
<script>
19+
window.dataLayer = window.dataLayer || [];
20+
function gtag(){dataLayer.push(arguments);}
21+
gtag('js', new Date());
22+
23+
gtag('config', 'G-Z8G0YWTNLM');
24+
</script>

_includes/head.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<head>
2+
<!-- auto-generated tag -->
3+
{% include google-analytics.html %}
4+
5+
<!-- default -->
26
<meta charset="utf-8">
37
<meta http-equiv="X-UA-Compatible" content="IE=edge">
48
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -9,3 +13,5 @@
913
{%- include google-analytics.html -%}
1014
{%- endif -%}
1115
</head>
16+
17+

0 commit comments

Comments
 (0)