Commits

Branko Vukelic  committed 98b2133

Prevent rendering of tracking code for untrackable users

  • Participants
  • Parent commits 59b8d7f

Comments (0)

Files changed (2)

File ga_tracking/templates/ga_tracking/ga.html

-{% if GA_TRACKING_ID %}
+{% if GA_TRACKING_ID and GA_USER_TRACKABLE %}
 <script type="text/javascript">
 
     var _gaq = _gaq || [];

File ga_tracking/templates/ga_tracking/ga_new.html

-{% if GA_TRACKING_ID and GA_DOMAIN %}
+{% if GA_TRACKING_ID and GA_DOMAIN and GA_USER_TRACKABLE %}
 <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),