Configuring ShareThis with Google Analytics

Overview

Configuring ShareThis social data into your Google Analytics is easy, and allows you to view ShareThis social events as custom events in your Google Analytics reports.

You must already have a Google Analytics account. Sign up for Google Analytics here, and refer to Tracking Code Quickstart to learn how to configure Google Analytics for the first time.

Integrating ShareThis with Google Analytics

Once Google Analytics is installed on your pages, you can send ShareThis social activity to your Google Analytics dashboard as custom events in a category sharethis by adding these lines to your existing ShareThis code. You'll need to add in your Google Analytics property ID, which is a serial number with the format UA-xxxxxx-x (Find your tracking code, tracking ID, and property number).

 

<script type="text/javascript">
        stLight.options({
                publisherGA:"UA-1645146-1"
        });
</script>

 

Viewing ShareThis Social Events in Google Analytics

In your Google Analytics reports, you can find the ShareThis data under Event Tracking > Categories > ShareThis.

 

Disable Google Analytics Tracking

You can turn off Google Analytics tracking as follows:

		 
<script type="text/javascript">
        stLight.options({
                tracking:"false"
        });
</script>