Skip to content

Commit 5c9eac7

Browse files
authored
Update google analytics. (#23)
1 parent 8d86473 commit 5c9eac7

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

_includes/google-analytics.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

_layouts/default.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
<meta property="og:url" content="{{ url }}"/>
1919
{% if page.image %}<meta property="og:image" content="{{ page.image | absolute_url }}"/>{% endif %}
2020
{% if page.description %}<meta property="og:description" content="{{ page.description }}"/>{% endif %}
21+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TMTZVLLMBP"></script>
22+
<script>
23+
window.dataLayer = window.dataLayer || [];
24+
function gtag() { dataLayer.push(arguments); }
25+
gtag('js', new Date());
26+
gtag('config', 'G-TMTZVLLMBP');
27+
</script>
2128
</head>
2229

2330
<body class='page {{layout.bodyClass}}'>
@@ -31,6 +38,5 @@
3138
{% include footer.html %}
3239
{% include sub-footer.html %}
3340
<script type="text/javascript" src="{{ '/assets/js/scripts.js' | relative_url }}"></script>
34-
{% include google-analytics.html %}
3541
</body>
3642
</html>

0 commit comments

Comments
 (0)