Skip to content

Commit

Permalink
Merge branch 'fix-ga-anonymization'
Browse files Browse the repository at this point in the history
  • Loading branch information
crowbot committed Jul 28, 2016
2 parents 6883f15 + 06ea2b1 commit a2caa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/views/general/_before_body_end.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<% if @total_hits %>
<%# we're on a search page; make it look to Google Analytics like we're using a query string, so it can track the search keywords %>
<script type="text/javascript">
_gaq.push(['_gat._anonymizeIp']);
_gaq.push(['_trackPageview', '<%= request.fullpath %>?query=<%=u @query %>']);
ga('set', 'anonymizeIp', true)
ga('send', 'pageview', '<%= request.fullpath %>?query=<%=u @query %>');
</script>
<% end %>

0 comments on commit a2caa72

Please sign in to comment.