Commit 7f501e13 authored by Cole Bemis's avatar Cole Bemis

Add google analytics

parent 0bd43ce3
......@@ -8,4 +8,7 @@ exclude:
- icons-manifest.json
- bin
- sandbox
- stash
\ No newline at end of file
- stash
# Google Analytics Tracking ID
google_analytics: UA-63028889-4
\ No newline at end of file
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
......@@ -18,6 +18,10 @@ description: Feather is a collection of simply beautiful open source icons. Each
<link href="https://fonts.googleapis.com/css?family=Rubik:300,400" rel="stylesheet">
<link rel="stylesheet" href="style.css">
{% if site.google_analytics and jekyll.environment == 'production' %}
{% include analytics.html %}
{% endif %}
</head>
<body>
{% include header.html %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment