Closed fddayan closed 9 years ago
+1
@kangguru Are you supporting this gem anymore? I see you've made some commits to railslove/rack-tracker, do you recommend switching to that?
yes. please consider moving to Rack::Tracker
https://github.com/kangguru/rack-google-analytics#please-read
To skip adding the GA code to a page it should be sufficient when tracker
evaluates to nil
which will skip the initialization and page track.
you just should make sure that no events are published during that request
@fddayan @mhuggins will that work for you?
:if
option added to skip google analytics if returns false.A
lambda
might be used, so we can do something likeWe can check for any of the variables of in
env
.It would be possible to disabled GA for
controllers
orcontrollers actions
usingbefore_filter