Julienh / Sharrre

Make your sharing widget! Sharrre is a jQuery plugin that allows you to create nice widgets sharing for Facebook, Twitter, Google Plus (with PHP script) and more.
sharrre.com
MIT License
1.04k stars 413 forks source link

Google Universal Analytics #222

Open slacabos opened 9 years ago

slacabos commented 9 years ago

Google analytics social event tracking with _trackSocial is no longer supported by universal analytics and analytics.js

Sharrre should use the social interactions method https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions

scosco commented 9 years ago

Additionally there is the tag manager, which uses a dataLayer array. Instead of _gaq.push() (old google analytics) or ga() (new universal analytics) it would have to use dataLayer.push(). See also http://www.simoahava.com/analytics/google-tag-manager-track-social-interactions/

Best solution here would be to have a choice whether one wants to use old google analytics, new google analytics or tag manager. With tag manager there is also an issue: the dataLayer could have any name.