AddToAny & Google Analytics

AddToAny integrates with Google Analytics to provide sharing statistics within your analytics dashboard.

AddToAny Reports

Google Tag Manager If you're using Google Tag Manager to load Google Analytics, setup GTM to receive AddToAny stats in Google Analytics.

Top Events Report — GA4 & the gtag.js library

If you're using Google's current default code snippet for Google Analytics, the gtag.js library, AddToAny automatically integrates with your Google Analytics.

In the latest dashboard for Google Analytics 4 (GA4) properties, start in Life cycle > Engagement > Events > AddToAnyShare to access your sharing event reports. Each AddToAny share event has addtoany_service and addtoany_shared_url parameters (or socialAction and socialTarget parameters if you're using GTM).

In the older dashboard for legacy GA properties, start in Behavior > Events > Top Events > AddToAny to access your sharing event reports. Each service destination is an Action in this report, and each shared URL is a Label.

Social Plugins Report — Universal Analytics & legacy libraries

If you're using Google's legacy analytics.js or ga.js tracking code snippets, AddToAny automatically integrates with your Google Analytics.

Start in Acquisition > Social > Plugins to access sharing stats. Shares via AddToAny have a Social Network attributed to AddToAny, where each service destination is considered an Action in Google Analytics. For example, you can view the top sharing destinations by choosing Plugins and the Primary Dimension titled Social Network and Action.

Customize Your Reports

Using the Segment Builder, you can filter reports by Mobile & Tablet Traffic, Paid Traffic, Search Traffic, Organic Traffic, New Users, Returning Users, Made a Purchase, and many other custom segments.


Google Tag Manager Setup

A setup process is necessary for tracking shares in Google Analytics with Google Tag Manager.

Google Analytics: GA4 Event

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.

  1. New Variable named "Social Action"
    • Data Layer Variable Name:
      socialAction
  2. New Variable named "Social Target"
    • Data Layer Variable Name:
      socialTarget
  3. New Trigger named "AddToAny Share Event"
    1. Trigger Type:
      Custom Event
    2. Event name:
      AddToAnyShare
    3. This trigger fires on…
      Some Custom Events
    4. Fire this trigger when…
      Event equals AddToAnyShare
  4. New Tag named "AddToAny Share Event Tag"
    1. Tag Configuration
      1. Tag Type: "Google Analytics: GA4 Event"
      2. Configuration Tag: [Your "GA4 Configuration" tag]
      3. Event Name:
        AddToAnyShare
      4. Event Parameters:
        1. socialAction = {{Social Action}}
        2. socialTarget = {{Social Target}}
    2. Triggering
      1. Trigger: "AddToAny Share Event"

Once your changes are saved & deployed, sharing stats will automatically roll into Google Analytics.

Google Analytics may take 24–48 hours to process events before data appears in most reports, but you can use Realtime and DebugView reports to confirm that sharing data is being collected.


Google Analytics: Universal Analytics (legacy)

Universal Analytics is Google's older deprecated version of Google Analytics. The steps below created an AddToAny Share Event tag for Universal Analytics.

  1. New Variable named "Social Network"
    • Data Layer Variable Name:
      socialNetwork
  2. New Variable named "Social Action"
    • Data Layer Variable Name:
      socialAction
  3. New Variable named "Social Target"
    • Data Layer Variable Name:
      socialTarget
  4. New Trigger named "AddToAny Share Event"
    1. Trigger Type:
      Custom Event
    2. Event name:
      AddToAnyShare
    3. This trigger fires on…
      Some Custom Events
    4. Fire this trigger when…
      Event equals AddToAnyShare
  5. New Tag named "AddToAny Share Event Tag"
    1. Tag Configuration
      1. Tag Type: "Google Analytics: Universal Analytics"
      2. Track Type:
        Social
      3. Social Tracking Parameters
        1. Network:
          {{Social Network}}
        2. Action:
          {{Social Action}}
        3. Action Target:
          {{Social Target}}
    2. Triggering
      1. Trigger = "AddToAny Share Event"