Tracking like button referrals from Facebook using the 'fb_ref' parameter in our code

2.2k Views Asked by At

We would like to use the Attribute fb_ref - the ref parameter in a like button (in order to track referral clicks and conversions). Do you have a tutorial or example of how this works on our pages?

1

There are 1 best solutions below

2
On

When you use the ref parameter on a like button, clicks back to your website which were generated by that Like button, contain two extra parameters in the referrer: fb_ref, containing the same value you gave to ref, and fb_source which shows where on Facebook the story was clicked.

This is explained here in the documentation for the like button: https://developers.facebook.com/docs/reference/plugins/like/ - search for 'ref'