标签: google-analytics universal-analytics pageviews
我从旧的Google Analytics for Universal Analytics中搜索相应的这行代码:
_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
感谢。
答案 0 :(得分:2)
ga('send', 'pageview', location.pathname + location.search + location.hash);
应该这样做
请参阅here