0

Whether this code is fine to implement for UA to track hashchange Urls:

 ga ('send', 'pageview', {
   'page': location.pathname+location.search+location.hash, 
   'title': location.pathname+location.search+location.hash}); 

How many pageview requests it would record in GA everytime the event fire?

alen
  • 1

1 Answers1

1

Every time that line of code executes, one Google Analytics Pageview will fire. See here for more details on Pageview tracking.

Also, this Chrome extension might be helpful. It prints info on any Google Analytics hits sent to the JS console.

Andy
  • 196
  • 3