Skip to content

Commit

Permalink
add google analytics pageview tracking code to all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Aug 28, 2017
1 parent 9a1090f commit 29db218
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@
{{ super() }}
<script>CKAN_LANG="{{request.environ.CKAN_LANG}}";</script>
{% resource 'odata_org_il/rtl.js' %}
<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', 'UA-105327157-1', 'auto');
ga('send', 'pageview');
</script>
{% endblock -%}

0 comments on commit 29db218

Please sign in to comment.