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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nonsie’s picture

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

glynster’s picture

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

nonsie’s picture

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

Simon Georges’s picture

Status: Active » Needs review

Changing status, as there is a patch.

TheCrow’s picture

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.

nonsie’s picture

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

SeyV’s picture

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

nerdoc’s picture

Issue summary: View changes

I think this is a duplicate of issue #2344879.