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

Send pageview hit as configuration option #21

Open
xcopy opened this issue Aug 5, 2015 · 0 comments
Open

Send pageview hit as configuration option #21

xcopy opened this issue Aug 5, 2015 · 0 comments
Assignees

Comments

@xcopy
Copy link

xcopy commented Aug 5, 2015

Hey there!

Does it make sense to add the ability to disable the "send" command?

For example:

# config.rb
activate :google_analytics do |ga|
  ...
  # Send pageview hit by default
  ga.send_pageview = true
  ...
end
<%
  # analytics.js.erb
  ...
  ga << "ga('send', 'pageview');" if @options.send_pageview
%>
...

The reason is: AngularJS + Angular UI Router. I want to capture each state in the user flow.

Full article: http://www.arnaldocapo.com/blog/post/google-analytics-and-angularjs-with-ui-router/72

@xcopy xcopy changed the title "Send" command as configuration option Send pageview hits as configuration option Aug 5, 2015
@xcopy xcopy changed the title Send pageview hits as configuration option Send pageview hit as configuration option Aug 5, 2015
@danielbayerlein danielbayerlein self-assigned this Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants