Skip to content

Commit 9a874be

Browse files
committed
ADD: google analytics
1 parent 01b8982 commit 9a874be

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

_includes/footer.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{%- if site.texture.analytics_id -%}
2-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.texture.analytics_id }}"></script>
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5X6JK5ZNF1"></script>
33
<script>
4-
window.dataLayer = window.dataLayer || [];
5-
function gtag() { dataLayer.push(arguments); }
6-
gtag('js', new Date());
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
77

8-
gtag('config', '{{ site.texture.analytics_id }}');
8+
gtag('config', 'G-5X6JK5ZNF1');
99
</script>
10-
{%- endif -%}
1110

1211
{%- if site.texture.showPicker -%}
1312
<div id="texture-picker">

0 commit comments

Comments
 (0)