Skip to content

Send pageview hit as configuration optionΒ #21

@xcopy

Description

@xcopy

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions