Google analytics is one of the most important tracking tools freely available for websites, portals, applications, blogs and forums. It is equally useful even for Facebook Apps as well!
Facebook App without any monitoring of your traffic, pageviews, bouncerate and other demographic information doesn’t really help to anyone to propel the growth of an application.
So, how can you add Google Analytics code into your Facebook Application and start tracking?
Well its very easy and simple 2 steps process,
Step 1: Create a website profile in Google Analytics.
Note that you need to create a profile for your facebook application and not for the domain on which your app is actually hosted.
So, create a profile for apps.facebook.com/YourAppName
Step 2: Now, add a FMBL tag provided by Facebook for Google analytics on your canvas page. Just like this,
Replace 99999 with your Google Analytics code.
That is all and you are done.
Now, wait for some time to propogate your change on Facebook since it may take some time to get stats into your Google Analytics account.
For further information you can take a look to,
http://wiki.developers.facebook.com/index.php/Fb:google-analytics
Hope this helps you!
FacebookAppCreation is an agile and one of the fastest growing Facebook Application Development Companies. FacebookAppCreation offers full curve of application development viz FB App designing, FB App Development, Facebook Application Strategy, Social Game Development and Facebook Application Monetization.
Jan 30th by admin




What if the application is done in iframe? how do we add google analytics?
thanks,
admin
on June 10th, 2010Google analytics works in the same principal irrespective of the usage of iFrame however we have never tried analytic in iFrame based app as the iFrame based FB Application are not considered to be the best practices of the development on facebook.
admin
on July 5th, 2010