Fortunately there is a way to use google analytics on Facebook. At the moment Facebook is not allowing any tracking code in it’s FBML but there is a workaround that I have learned from a company in London called Webdigi, which I want to thank for it’s help.
Here is a quick guide.
Setup Google Analytics on your Facebook fan pages in 3 easy steps:
- Setup your Google Analytics account and create a new website profile. Usually it’s easier to name it something like facebook.com/your-page-name. Get your tracking code that you will need in the second step.
- Create your custom img tag for each of your Facebook tab pages you like to track on Google analytics. Eg: contact form, welcome tabs, etc. You can use this open source tool created by Webdigi to create the Google Analytics link generator for Facebook pages. It’s completely free!
- Add the entire custom image html tag from step 2 to the bottom of each Facebook fan page that you need to track.
That’s it! Remember that Google analytics is not real-time so give it some time to get the data. Usually 24 hours is enough.
Hope this helps.
Update: Some of you asked me if it’s possible to track facebook walls and “default” sections not created with FBML. The answer is unfortunately no! Since Facebook removed boxes, there is no other way to track these parts. But the good news is that you can add a FBML page as the default landing page. That way you can track access to you page, even if the user doesn’t use the wall!