mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
Add google analytics
This commit is contained in:
parent
0bd43ce36c
commit
7f501e139e
@ -8,4 +8,7 @@ exclude:
|
||||
- icons-manifest.json
|
||||
- bin
|
||||
- sandbox
|
||||
- stash
|
||||
- stash
|
||||
|
||||
# Google Analytics Tracking ID
|
||||
google_analytics: UA-63028889-4
|
10
_includes/analytics.html
Normal file
10
_includes/analytics.html
Normal file
@ -0,0 +1,10 @@
|
||||
<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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user