Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从旧的 Google Analytics for Universal Analytics 中搜索与这行代码等效的代码:
_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
谢谢。
ga('send', 'pageview', location.pathname + location.search + location.hash);
应该这样做
看这里