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

pull in GA source if an account is configured #36

Merged
merged 2 commits into from Apr 2, 2018
Merged

Conversation

barmintor
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Apr 2, 2018

Coverage Status

Coverage remained the same at 91.277% when pulling 812990a on HOURS-21 into 5e95124 on master.

Copy link
Member Author

@barmintor barmintor left a 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?

Rails.application.secrets.delete(:analytics_key)
visit '/locations/open_now'
end
it "tracks page views" do
Copy link
Member

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".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@elohanlon
Copy link
Member

Documentation in README would be great, thanks!

Copy link

@cgalarza cgalarza left a 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.

@barmintor barmintor merged commit 0410c46 into master Apr 2, 2018
@barmintor barmintor deleted the HOURS-21 branch April 2, 2018 19:58
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

Successfully merging this pull request may close these issues.

None yet

4 participants