开发者

Use _trackPageview on pageload with jquery?

开发者 https://www.devze.com 2023-01-30 15:13 出处:网络
Okay, I\'ve been looking far and wide for a s开发者_Go百科imple example of this. I\'m about to make a site public and it\'s kind of hard to test that your tracking-code works properly, so I just want

Okay, I've been looking far and wide for a s开发者_Go百科imple example of this. I'm about to make a site public and it's kind of hard to test that your tracking-code works properly, so I just want to make sure this is right. Can I just add this to my header on the pages i want to add? The tracking code is already up and running.

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview("/subdirectory/pagename"); </script>

If not, what should I do? I can't use the pagename-technique.


This is pretty much what you need to do.

0

精彩评论

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