Skip to content

Commit f62259c

Browse files
authored
Create analytics.html (ImmutableWebApps#1)
* Create analytics.html * Add google_analytics to _config.yml
1 parent 534e105 commit f62259c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
theme: jekyll-theme-primer
22
title: Immutable Web Apps
3+
google_analytics: UA-126263119-1

_includes/analytics.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-126263119-1"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', '{{ site.google_analytics }}');
9+
</script>

0 commit comments

Comments
 (0)