CINXE.COM

AddToAny & Google Analytics - Sharing Stats

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="AddToAny integrates with Google Analytics to provide sharing statistics within your analytics dashboard."> <title>AddToAny &amp; Google Analytics - Sharing Stats</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="/css/main.18.min.css" rel="stylesheet"> <script>!function(){var e;(e=document.documentElement).className+=e.className?" svg":"svg";}();</script> <style> @media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } } </style> <script type="module" src="/js/prefetch.1.min.js"></script> <script blocking="render" defer src="/js/transition.1.min.js"></script> <link rel="expect" href="#header .logo :first-child" blocking="render" /> <link rel="expect" href="#header a[href='/share']" blocking="render" /> <style> .ga_logo{text-align:center} .ga_logo img{border:0} .gtm_inline{margin-bottom:3px} .notes a img{border:0} ol ol{list-style-type:lower-alpha} ol ol ol{list-style-type:lower-roman} h4 code{font-size:19px} </style> </head> <body> <div id="header"> <div class="header_content clearfix"> <div class="hdr_l"> <h2 class="logo"><a href="/" title="AddToAny Share Buttons">AddToAny</a></h2> </div> <div class="hdr_r"> <a class="hdr_link" href="/buttons/" title="Get the share buttons">Get</a> <a class="hdr_link" href="/buttons/customize/" title="Customize the share buttons">Customize</a> <a class="hdr_link" href="/share" title="Share a link">Share</a> <a class="hdr_link" href="/buttons/faq/" title="Frequently asked questions and answers">FAQ</a> </div> </div> </div> <div id="page"> <div class="main"> <h2>AddToAny &amp; Google Analytics</h2> <div class="notes_content"> <p>AddToAny integrates with Google Analytics to provide sharing statistics within your analytics dashboard.</p> </div> <div class="notes"> <div class="ga_logo"> <a href="https://www.google.com/analytics/" title="AddToAny automatically integrates with Google Analytics" target="_blank" rel="noopener"><img src="https://static.addtoany.com/images/ga-2018.svg" width="100" height="100" alt="Google Analytics"></a> </div> <h3>AddToAny Reports</h3> <div class="notes_content"> <p> <img class="gtm_inline" src="https://static.addtoany.com/images/google-tag-manager-2016.svg" width="16" height="16" alt="Google Tag Manager"> If you're using <a href="https://support.google.com/tagmanager/answer/9442095" target="_blank" rel="noopener">Google Tag Manager</a> to load Google Analytics, <a href="#google-tag-manager" title="Setup Google Tag Manager to track shares">setup GTM</a> to receive AddToAny stats in Google Analytics. </p> <h4>Top Events Report — GA4 &amp; the <code>gtag.js</code> library</h4> <p>If you're using Google's current default code snippet for Google Analytics, the <a href="https://support.google.com/analytics/answer/10220869" target="_blank" rel="noopener"><code>gtag.js</code></a> library, AddToAny automatically integrates with your Google Analytics.</p> <p>In the latest dashboard for Google Analytics 4 (GA4) properties, start in <strong>Life cycle</strong> &gt; <strong>Engagement</strong> &gt; <strong>Events</strong> &gt; <code>AddToAnyShare</code> to access your sharing event reports. Each AddToAny share event has <code>addtoany_service</code> and <code>addtoany_shared_url</code> parameters (or <code>socialAction</code> and <code>socialTarget</code> parameters if you're using <span title="Google Tag Manager">GTM</span>).</p> <p>In the older dashboard for legacy GA properties, start in <strong>Behavior</strong> &gt; <strong>Events</strong> &gt; <strong>Top Events</strong> &gt; <strong>AddToAny</strong> to access your sharing event reports. Each service destination is an <strong>Action</strong> in this report, and each shared URL is a <strong>Label</strong>.</p> <h4>Social Plugins Report — Universal Analytics &amp; legacy libraries</h4> <p>If you're using Google's legacy <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/" target="_blank" rel="noopener"><code>analytics.js</code></a> or <a href="https://developers.google.com/analytics/devguides/collection/gajs/" target="_blank"><code>ga.js</code></a> tracking code snippets, AddToAny automatically integrates with your Google Analytics.</p> <p>Start in <strong>Acquisition</strong> &gt; <strong>Social</strong> &gt; <strong>Plugins</strong> to access sharing stats. Shares via AddToAny have a <strong>Social Network</strong> attributed to <strong>AddToAny</strong>, where each service destination is considered an Action in Google Analytics. For example, you can view the top sharing destinations by choosing <strong>Plugins</strong> and the Primary Dimension titled <strong>Social Network and Action</strong>.</p> <h4>Customize Your Reports</h4> <p>Using the <a href="https://support.google.com/analytics/answer/9304353" target="_blank" rel="noopener">Segment Builder</a>, you can filter reports by Mobile &amp; Tablet Traffic, Paid Traffic, Search Traffic, Organic Traffic, New Users, Returning Users, Made a Purchase, and many other custom segments.</p> </div> </div> <br> <div class="notes" id="google-tag-manager"> <div class="ga_logo"> <a href="https://www.google.com/analytics/tag-manager/" title="Setup Google Tag Manager to track shares in Google Analytics" target="_blank" rel="noopener"><img src="https://static.addtoany.com/images/google-tag-manager-2016.svg" width="100" height="100" alt="Google Tag Manager"></a> </div> <h3>Google Tag Manager Setup</h3> <div class="notes_content"> <p>A setup process is necessary for tracking shares in Google Analytics with Google Tag Manager.</p> </div> <div class="notes_content"> <h4>Google Analytics: GA4 Event</h4> <p>Google Analytics 4 (GA4) is Google's latest version of Google Analytics. Follow the steps below to create an AddToAny Share Event tag for GA4.</p> <ol> <li>New Variable named &quot;Social Action&quot;</li> <ul> <li>Data Layer Variable Name: <br><code>socialAction</code></li> </ul> <li>New Variable named &quot;Social Target&quot;</li> <ul> <li>Data Layer Variable Name: <br><code>socialTarget</code></li> </ul> <li>New <strong>Trigger</strong> named &quot;AddToAny Share Event&quot;</li> <ol> <li>Trigger Type: <br>Custom Event</li> <li>Event name: <br><code>AddToAnyShare</code></li> <li>This trigger fires on&#8230 <br>Some Custom Events</li> <li>Fire this trigger when&#8230 <br>Event equals <code>AddToAnyShare</code></li> </ol> <li>New <strong>Tag</strong> named &quot;AddToAny Share Event Tag&quot;</li> <ol> <li>Tag Configuration</li> <ol> <li>Tag Type: &quot;Google Analytics: GA4 Event&quot;</li> <li>Configuration Tag: [Your &quot;GA4 Configuration&quot; tag]</li> <li>Event Name: <br><code>AddToAnyShare</code></li> <li>Event Parameters:</li> <ol> <li><code>socialAction</code> = <code>{{Social Action}}</code></li> <li><code>socialTarget</code> = <code>{{Social Target}}</code></li> </ol> </ol> <li>Triggering</li> <ol> <li>Trigger: &quot;AddToAny Share Event&quot;</li> </ol> </ol> </ol> <p>Once your changes are saved &amp; deployed, sharing stats will automatically roll into Google Analytics.</p> <p>Google Analytics may take 24–48 hours to process events before data appears in most reports, but you can use <a href="https://support.google.com/analytics/answer/9333790" target="_blank" rel="noopener"><em>Realtime</em> and <em>DebugView</em> reports</a> to confirm that sharing data is being collected.</p> </div> <br> <div class="notes_content"> <h4>Google Analytics: Universal Analytics (legacy)</h4> <p>Universal Analytics is Google's older deprecated version of Google Analytics. The steps below created an AddToAny Share Event tag for Universal Analytics.</p> <ol> <li>New <strong>Variable</strong> named &quot;Social Network&quot;</li> <ul> <li>Data Layer Variable Name: <br><code>socialNetwork</code></li> </ul> <li>New Variable named &quot;Social Action&quot;</li> <ul> <li>Data Layer Variable Name: <br><code>socialAction</code></li> </ul> <li>New Variable named &quot;Social Target&quot;</li> <ul> <li>Data Layer Variable Name: <br><code>socialTarget</code></li> </ul> <li>New <strong>Trigger</strong> named &quot;AddToAny Share Event&quot;</li> <ol> <li>Trigger Type: <br>Custom Event</li> <li>Event name: <br><code>AddToAnyShare</code></li> <li>This trigger fires on&#8230 <br>Some Custom Events</li> <li>Fire this trigger when&#8230 <br>Event equals <code>AddToAnyShare</code></li> </ol> <li>New <strong>Tag</strong> named &quot;AddToAny Share Event Tag&quot;</li> <ol> <li>Tag Configuration</li> <ol> <li>Tag Type: &quot;Google Analytics: Universal Analytics&quot;</li> <li>Track Type: <br>Social</li> <li>Social Tracking Parameters</li> <ol> <li>Network: <br><code>{{Social Network}}</code></li> <li>Action: <br><code>{{Social Action}}</code></li> <li>Action Target: <br><code>{{Social Target}}</code></li> </ol> </ol> <li>Triggering</li> <ol> <li>Trigger = &quot;AddToAny Share Event&quot;</li> </ol> </ol> </ol> </div> </div> </div> <div id="footer"> <div class="footer_cols"> <div> <h2>Features</h2> <a href="/buttons/customize/floating_share_buttons" title="Floating Share Bars that are responsive for mobile and desktop, and can show and hide on scroll">Floating Share Buttons</a> <a href="/buttons/customize/image_sharing" title="Share your images directly to Facebook, Pinterest, Tumblr, Houzz, and more">Image Share Buttons</a> <a href="/buttons/customize/share_counters" title="Show the share count next to your share buttons">Share Counts</a> <a href="/buttons/customize/share_count_recovery" title="Recover lost share counts after a change in URLs, a new domain, or a move to HTTPS from HTTP">Share Count Recovery</a> <a href="/buttons/customize/follow_buttons" title="Link to your Instagram, Snapchat, YouTube, and other social media and RSS feeds">Follow Buttons</a> <a href="/ext/google_analytics/" title="Sharing analytics in Google Analytics">Google Analytics</a> </div> <div> <h2>Plugins</h2> <a href="https://wordpress.org/plugins/add-to-any/" title="Share Buttons for WordPress, the most popular WordPress sharing plugin">WordPress Share Plugin</a> <a href="https://www.drupal.org/project/addtoany" title="Share Buttons for Drupal, the most popular Drupal sharing module">Drupal Share Module</a> <a href="/buttons/for/joomla" title="Share Buttons for Joomla, available as a plugin and a module in one extension">Joomla Share Extension</a> <a href="https://www.cloudflare.com/apps/addtoany" title="Share Buttons for Cloudflare sites">Cloudflare Share App</a> <a href="/buttons/" title="All share button plugins for WordPress.com, Blogger, Tumblr, and more platforms, websites and apps">Share Buttons for Sites</a> <a href="/buttons/for/email_newsletter" title="Get share buttons for use in email">Share Buttons for Email</a> </div> <div> <h2>Browser Tools</h2> <a href="https://addons.mozilla.org/en-US/firefox/addon/addtoany-share/" title="Share button for Mozilla Firefox">AddToAny for Firefox</a> <a href="https://chrome.google.com/webstore/detail/addtoany-share-anywhere/ffpgijchhhkhnokafdeklpllijgnbche" title="Share button for Google Chrome">AddToAny for Chrome</a> <a href="/users/bookmarklet" title="Share button for your browser's Bookmarks Bar">AddToAny Bookmarklet</a> <a href="/services/" title="Services directory and bookmarklets">Service Bookmarklets</a> <a href="/share" title="Share a page to any service">Share a URL</a> <a href="/share/preferences" title="Set your preferred services">Sharing Preferences</a> </div> <div> <h2>Resources</h2> <a href="/buttons/customize/" title="Customize your share buttons">Customize AddToAny</a> <a href="/services/" title="Services directory and share button codes">Service Codes</a> <a href="/buttons/api/" title="JavaScript API reference">JavaScript API</a> <a href="/buttons/faq/" title="Answers to frequently asked questions">Questions &amp; Answers</a> <a href="/blog/" title="The AddToAny Blog">AddToAny News</a> <a href="/contact/" title="Contact AddToAny">Contact AddToAny</a> </div> </div> <div class="legal"> <span>&copy; 2006&ndash;2024</span> <a href="/terms" title="Terms of Service">Terms</a> <a href="/privacy" title="Privacy Policy">Privacy</a> </div> </div> </div></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10