Current Facebook like implementation uses an iframe and is not therefore traceable for analytics. Attached patch attempts to solve it by using HTML5 version of the like button as described on https://developers.facebook.com/docs/reference/plugins/like/.

It has not been fully tested in all browsers.

Comments

StatusFileSize
new6.47 KB

Updated patch with Google Analytics like/unlike tracking if GA is enabled.

How is this working for you? I was not able to test this as the patch failed.

StatusFileSize
new6.41 KB

Try this patch instead (rolled against 7.x-2.x-dev). The first one was against stable 7.x-2.1 release.

Status:Active» Needs review

Changing status, as there is a patch.

Status:Needs review» Needs work

hook_page_alter() doesn't exist on D6 and can't be easily backported, requires some rewrite before add it on the repo.

I don't understand the last comment. This patch is against 7.x not 6.x.

TheCrow means that he would like to make your patch available in 6.x. This so both version do quite the same.