Question about Google Analytics Tracking (w/ Rails) -
i've got google analytics setup on rails project, , i've got "a single domain (default)" selected tracking options.
i've copied , pasted js code layout application.
now, if use locally, analytics track local use well?
the reason i'm asking we've been running tests on our dev computers using rspec, , there seems spike in analytics. these spikes seem show unique visitors.
i'd appreciate insight on this.
thanks!
yes, track local visits well. should use ruby conditional statement exclude local conneciton. example, @ bottom of layout file
<% if !request.local? %> source codes google analytics <% end %>
this way, google analytics not printed if connection made local.
Comments
Post a Comment