Universal Analytics的这行代码相当于什么?

时间:2014-07-23 21:43:07

标签: google-analytics universal-analytics pageviews

我从旧的Google Analytics for Universal Analytics中搜索相应的这行代码:

_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);

感谢。

1 个答案:

答案 0 :(得分:2)

ga('send', 'pageview', location.pathname + location.search + location.hash);

应该这样做

请参阅here