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
pull in GA source if an account is configured #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I add some documentation of the new configuration to the README?
spec/features/open_now_spec.rb
Outdated
Rails.application.secrets.delete(:analytics_key) | ||
visit '/locations/open_now' | ||
end | ||
it "tracks page views" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to change this to "doesn't track page views".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
Documentation in README would be great, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually when I implement a google analytics snippet, I check the environment before rendering. That way it is not rendered in a dev/test environment. I have a flag config.analytics_enabled
that can be set by each environment and most of the time it's just set in the production environment. And i check that flag before rendering.
No description provided.