IMPORTANT: Unfortunately the script on this article is no longer working to track conversions for Facebook Like buttons that have been manually embedded to landing pages. We understand that tracking different conversion types is important for most of your online campaigns and we would love to hear your feedback in our community forum at GetSatisfaction.
If the goal of your page is to acquire Facebook "likes", then it would make sense that you want to track those as conversions in order to run an A/B test. I've outlined how to get that working below:
Get the Script This won't work on the iFrame or HTML5 version of the script, so hop over to the Facebook Developer page and grab the FBML code for your "like" button if you aren't already using it.
Add it to your Unbounce Page Use the Custom HTML block to add the script to your page by clicking on this icon in the toolbar:
and then paste in the XFBML script that you copied from Facebook. It should look like this:
Note: You won't be able to add the XML namespace to the <html> tag at this point yet, which might result in this not working properly in older versions of I.E.
Add the tracking script Now you'll need to open up the Scripts dialog by clicking this button in the toolbar:
and paste in the following script (with the "Placement" set to "Before Body End Tag"):
That's all there is to it! You should start to see your conversions go up when the Like button is pressed.