Reputation: 89
I'm searching the equivalent of this line of code from the old Google Analytics for Universal Analytics :
_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
Thanks.
Upvotes: 0
Views: 69
Reputation: 853
ga('send', 'pageview', location.pathname + location.search + location.hash);
should do it
See here
Upvotes: 2