How to Add Google Analytics to a Facebook Page Tab
By now I’m sure you have a Facebook page, or maybe you manage a client’s Facebook page to help drive traffic to their website. If so you could probably benefit from adding Google Analytics to your FBML tabs. With this valuable data, combined with Facebook Insight can help you create more of a well-rounded idea of what your visitors are doing, and were they’re coming from.
Follow these three simple steps to add GA to your Facebook page:
1.) Create a New Profile in Google Analytics
Assuming you already have a Google Analytics account, the first step is to add a new profile for the Facebook tab you want to track. If you don’t have a Google Analytics account yet, you’ll need to create one to get started.
Since each Facebook Page has it’s own unique URL you can create as many profiles as you’d like, we’ll only create on for this tutorial.
Log into your Google Analytics account and navigate to the “Add new profile” link.
Then navigate to the next screen and select “Add a Profile for a new domain” and paste your full URL for your FBML tab. See the example below:
Then click “Continue”
2.) Add tracking code to FBML
The next screen will give you the tracking details, take a look at property ID (ie: UA-9999999-9) keep that line handy or copy it somewhere.
Now, go back to your Facebook Page and edit the FBML for the tab you want to track and follow these steps:
Copy the code below, and replace the UA-9999999-9 with your Web Property ID code as shown above. Then, paste the line at the bottom on your FBML code and save your changes.
3.) Check Your Stats
Go go back Google Analytics, click “Finish,” and you will see your tab URL listing with a “Tracking Not Installed” icon: . It can take up to 24 hours for the tracking to pull any data so come back in a day or so and check to see if you installed the tracking code properly.
Want to add Google Analytics in more than one tab? You’ll want to rename the tab in Analytics to make it easier for you to keep track. Click the pencil icon to the right of the field to enter a new nickname.
You’re done! The statistics generated and activity tracked will depend on what type of content you have on your FBML tab. You’ll be able to view daily statistics by default.
We are always looking for your feedback! Do you track your Facebook Page visitors using Google Analytics, Facebook Insights or something else?