Facebook allows you to track ‘insights’ for your domain much like they track insights for your Facebook Pages.
This is not currently a replacement for something like Google Analytics, but will give you some good data about who is on liking or sharing your page.
Taken from this AllFacebook article Facebook Launches Insights For Your Domain, Facebook claims that insights for the domain are as follows
You can get detailed analytics about the demographics of your users and how users are sharing from your application with Insights. The Graph API provides programmatic access to all of this data so you can integrate Platform data into your own, custom analytics systems.
Facebook requests that you put a small piece of code into the HEAD of your ROOT webpage, aka the home page of your website.
This is really easy to do if you are using the Thesis Theme with WordPress. Now let’s go through a couple quick steps that will allow you to inject the required line of code.
- Visit http://www.facebook.com/insights/
- In the top right, click Insights For Your Domain
- Choose your page from the drop down menu
- Copy the code.
- Paste that line of code into a custom Thesis function.
Open up your custom_functions.php file and insert this code.
function custom_fb_meta() {
if (is_front_page()) {
?>
<meta property=”fb:admins” content=”YOUR UNIQUE ID” />
<?php
}
}add_action(‘wp_head’,'custom_fb_meta’);
Save and upload your custom_functions.php file and refresh your home page. View the source to make sure it is there.
After you confirm the code is in your HEAD, do the following
- Go back to http://facebook.com/insights
- Click on Insights For Your Domain
- In the popup window, type in your domain name
- Choose your Page from the drop down menu
- Click Check Domain.
Once you are done, refresh the page. If everything is successful, you should see a new listing for www.yourdomain.com at the top.
Hope this helps, Good luck!
{ 4 comments }