From f74c1570eb9b8d89b1b01a331ce1dc7fd44efa64 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Fri, 4 Jul 2014 16:37:33 +0400 Subject: [PATCH] Readme: How to track activity with Google Analytics. --- Readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Readme.md b/Readme.md index 6a392eb..84837ef 100644 --- a/Readme.md +++ b/Readme.md @@ -315,6 +315,15 @@ If you’re experiencing any problems with meta data try [Open Graph Debugger](h See [wiki](https://github.com/sapegin/social-likes/wiki/How-to-use-Social-Likes-with-Wordpress,-etc.). +### How to track activity with Google Analytics + +You can track how many people click on each social button on your site with Google Analytics (or other analytics service). Note that you can track clicks only, not real shares. + +```javascript +$(document).on('popup_opened.social-likes', function(event, service) { + ga('send', 'social', service, 'share', location.href); +}); +``` ## Troubleshooting