I want to know more about what users are doing within my application, and I really love using Google Analytics on my off-Facebook site, but dropping its code into my Canvas page didn’t work. How can I use it?
tag to insert your tracking code for you. The simplest form
<fb:google-analytics uacct="UA-9999999-99" />
uacct is the
_uacct variable from your Google-provided
code block. The FBML parser will render that into:
The first thing to note is that this tag still produces the
old-style Analytics code that calls the
urchinTracker(), rather than the
One of the features of the new code is the automatic detection of HTTP versus HTTPS, which would be wasted inside of Facebook because there are no secure connections to Facebook apps at this time. It also offers you the ability to track specific events ...