added google analytics id

This commit is contained in:
Tom Johnson 2015-08-13 00:32:53 -07:00
parent 27f2bca6df
commit c92d055d13
2 changed files with 9 additions and 2 deletions

View File

@ -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 %}

View File

@ -9,6 +9,7 @@ topnav_title: Jekyll Documentation Theme
homepage_title: Jekyll Documentation Theme &mdash; Designers homepage_title: Jekyll Documentation Theme &mdash; Designers
site_title: Jekyll Documentation Theme &mdash; Designers site_title: Jekyll Documentation Theme &mdash; Designers
disqus_shortname: idrbwjekyll disqus_shortname: idrbwjekyll
google_analytics: UA-66296557-1
# variables # variables