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

Add support for setting the cookie configuration for analytics.js #2

Merged
merged 1 commit into from
Nov 6, 2014

Conversation

pgrippi
Copy link
Owner

@pgrippi pgrippi commented Nov 6, 2014

Fixes #1

Adds support for setting the cookie domain, name, and expires properties on the ga object.

For example, one may turn off cookie tracking for development in environment.js:

ENV.googleAnalytics = {
  webPropertyId: 'UA-XXXX-Y'
};

if (environment === 'development') {
  ENV.googleAnalytics.cookieDomain = 'none';
}

pgrippi pushed a commit that referenced this pull request Nov 6, 2014
Add support for setting the cookie configuration for analytics.js
@pgrippi pgrippi merged commit 26a66c5 into master Nov 6, 2014
@pgrippi pgrippi deleted the cookie_domain branch November 6, 2014 13:30
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.

Allow analytics to be sent when running on localhost
1 participant