diff options
author | Daan Debie <d.debie@thenewmotion.com> | 2014-08-21 18:45:11 +0200 |
---|---|---|
committer | Daan Debie <d.debie@thenewmotion.com> | 2014-08-21 18:45:11 +0200 |
commit | 352965e0445417584f6c3fb3e8fef5d87db4f37f (patch) | |
tree | db9a4e7f5b760da37c0b506a450ca809496fbcc7 /pelican-bootstrap3/templates/includes/ga.html | |
parent | a928687830876af8c919606bae47195af65bc82d (diff) | |
download | pelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.tar.gz |
Updated pelican-bootstrap3 to the latest version
Diffstat (limited to 'pelican-bootstrap3/templates/includes/ga.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/ga.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/ga.html b/pelican-bootstrap3/templates/includes/ga.html index 2f75571..8663e73 100644 --- a/pelican-bootstrap3/templates/includes/ga.html +++ b/pelican-bootstrap3/templates/includes/ga.html @@ -1,4 +1,5 @@ {% if GOOGLE_ANALYTICS %} + <!-- Google Analytics --> <script type="text/javascript"> var _gaq = _gaq || []; @@ -13,6 +14,19 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); + </script> + <!-- End Google Analytics Code --> +{% endif %} +{% if GOOGLE_ANALYTICS_UNIVERSAL %} + <!-- Google Analytics Universal --> + <script type="text/javascript"> + (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', '{{ GOOGLE_ANALYTICS_UNIVERSAL }}', '{{ GOOGLE_ANALYTICS_UNIVERSAL_PROPERTY }}'); + ga('send', 'pageview'); </script> + <!-- End Google Analytics Universal Code --> {% endif %}
\ No newline at end of file |