I have correctly included the GA tracking code snippet found here (http://support.google.com/analytics/bin/answer.py?hl=en&answer=1008080&rd=1) and it is working (& has been for years)
I have recently set up the Facebook Javascript SDK for running code when the 'like' button is clicked - this also works. In the same FB.Event function, I included googles _gaq.push _trackSocial as follows...
FB.Event.subscribe('edge.create',
function(response) {
// do some stuff, this is working.
// google track likes - this isn't working
_gaq.push(['_trackSocial', 'facebook', 'like']);
}
);
No errors in console.
So either analytics takes a long time to register the likes & I haven't waited long enough or something is wrong.
Since the FB.Event & my JS functions ARE WORKING & _gaq.push does not give any errors - I am unsure what the problem is.
In Google Analytics Traffic Source > Social > Social Plugins then click on the 'Social Source' tab & it shows only Google.