Add to any with GTM.
-
Hi,
I read ” https://www.addtoany.com/ext/google_analytics/” and setup GTM events already .
but i tested social share tracking, doesnot work. event tracking not work.
do i must add below code on my website? if need to added, where do i put this code?
my website is https://seoartgallery.com.
var a2a_config = a2a_config || {}; a2a_config.callbacks = a2a_config.callbacks || []; a2a_config.callbacks.push({ share: function(data) { // Track shares in Google Analytics with Google Tag Manager dataLayer.push({ 'event': 'AddToAnyShare', 'socialNetwork': 'AddToAny', 'socialAction': data.service, 'socialTarget': data.url }); } });"
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add to any with GTM.’ is closed to new replies.