开发者

How to do Google Analytics for ajax call in Facebook?

I have a FBML game and need to track all ajax calls.

At the bottom of the page, I have this:

and in the javascript functions, I put this:

Facebook.urchinTracker("/ajaxcallname/");

However, it doesn't work.. and what I found out is that the utmac (the开发者_运维技巧 google account id) is empty!!! _uacct is empty!

even I set it in the FBML, it is still empty!! and I can't find a way to dynamically set _uacct be my google account ID.. any one has any idea?


Your Tracking of ajax call reflected in Google Analytics a/c after 72 Hrs.

Not Immediately.

& also check Your Urchin/Google Analytics account ID.


@seatoskyhk try to use this javascript in your html. May be this one is helpful for you

< script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
< /script>

< script> type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-xxxxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜