Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you exclude directories from google analytics? #32

Open
AlexCppns opened this issue Dec 3, 2013 · 9 comments
Open

How do you exclude directories from google analytics? #32

AlexCppns opened this issue Dec 3, 2013 · 9 comments

Comments

@AlexCppns
Copy link

No description provided.

@kangguru
Copy link
Owner

kangguru commented Dec 3, 2013

what do you mean exactly? can you give an example what your use case is looking like?

@SeriouslyAwesome
Copy link

I have a similar need. Not sure about @AlexCppns's situation, but I want to track only the public-facing pages of my app, and not necessarily the pages in my admin area. Anyway to disable tracking for certain actions?

@AlexCppns
Copy link
Author

@kangguru I don't want it to be initialized in /admin for instance. For now I am using another gem that lets me insert the js only in the layouts I want.

@kangguru
Copy link
Owner

kangguru commented Dec 3, 2013

alright i see. thats pretty much the same as @iamjohnellis describes. Currently there isn't such option, but i can imagine thats a use case for even more people. so we might add something like that in the future.

what gem are you using atm?

@AlexCppns
Copy link
Author

@kangguru We re using google-analytics-rails right now. It's not in production yet though, we haven't tested it.

@oTiMo
Copy link

oTiMo commented Feb 20, 2014

I agree that it would be really useful !

@sigmike
Copy link

sigmike commented Mar 10, 2014

Pull request #38 works fine for that:

if: lambda { |env| env['PATH_INFO'] !~ %r{/admin} }

@mhuggins
Copy link

+1, looks like #38 has been sitting around for over a year with no feedback from the maintainer. Not sure if this gem is still kept up to date or I should use an alternative.

@kangguru
Copy link
Owner

kangguru commented Mar 6, 2015

please consider Rack::Tracker as an alternative, which is the successor of this Gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants