Open slacabos opened 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.
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