开发者

Tagging page tracker event using the Async google analytics

开发者 https://www.devze.com 2023-01-02 01:48 出处:网络
In the old GA.js I was doing this: <script type=\"text/javascript\"> pageTracke开发者_高级运维r._trackPageview(\"/Page/About_Us/\");

In the old GA.js I was doing this:

<script type="text/javascript">
  pageTracke开发者_高级运维r._trackPageview("/Page/About_Us/");
</script>

What is the equivalent using the asynchronous analytics code?


Found answer -- first turn off the gaq.push that does a _trackPageview in the default async script then use this

<script type="text/javascript">
//<![CDATA[
_gaq.push(['_trackPageview', '/whatever/you/need']);
//]]>
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号