pR0Ps | 061c624 | 2014-01-28 18:12:53 -0500 | [diff] [blame] | 1 | {% if GOOGLE_ANALYTICS_ID and GOOGLE_ANALYTICS_PROP %} |
| 2 | <script> |
| 3 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 4 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 5 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
Carey Metcalfe | 3f00eb1 | 2016-03-09 20:04:43 -0500 | [diff] [blame^] | 6 | })(window,document,'script','https://ssl.google-analytics.com/analytics.js','ga'); |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 7 | |
pR0Ps | 061c624 | 2014-01-28 18:12:53 -0500 | [diff] [blame] | 8 | ga('create', '{{ GOOGLE_ANALYTICS_ID }}', '{{ GOOGLE_ANALYTICS_PROP }}'); |
| 9 | ga('send', 'pageview'); |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 10 | </script> |
| 11 | {% endif %} |