Skip to content

Commit

Permalink
Use cookie-less Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Mar 4, 2020
1 parent e3d96c1 commit c5d597f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ainow/templates/ainow/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
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', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}', 'auto');
ga('create', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}', {'storage': 'none'});
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
{% endif %}
Expand Down

0 comments on commit c5d597f

Please sign in to comment.