added google analytics id
This commit is contained in:
parent
27f2bca6df
commit
c92d055d13
@ -1,6 +1,12 @@
|
|||||||
<!-- the google_analytics_id gets auto inserted from the config file -->
|
<!-- the google_analytics_id gets auto inserted from the config file -->
|
||||||
|
|
||||||
{% if site.google_analytics %}
|
{% if site.google_analytics %}
|
||||||
|
<script>
|
||||||
<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','//www.google-analytics.com/analytics.js','ga');ga('create','{{site.google_analytics}}','auto');ga('require','displayfeatures');ga('send','pageview');</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','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
ga('create', '{{site.google_analytics}}', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
@ -9,6 +9,7 @@ topnav_title: Jekyll Documentation Theme
|
|||||||
homepage_title: Jekyll Documentation Theme — Designers
|
homepage_title: Jekyll Documentation Theme — Designers
|
||||||
site_title: Jekyll Documentation Theme — Designers
|
site_title: Jekyll Documentation Theme — Designers
|
||||||
disqus_shortname: idrbwjekyll
|
disqus_shortname: idrbwjekyll
|
||||||
|
google_analytics: UA-66296557-1
|
||||||
|
|
||||||
# variables
|
# variables
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user