Click Tracking

Last Updated: Oct 25, 2013 04:34PM EDT

Our click tracking feature allows you to measure the amount of traffic and viral lift you get from sharing. When you visit your analytics console you'll see how many new site visits have come back from your shares, which social networks are most effective, and which of your pages are most viral. We also use click data to optimize your content feeds which help recirculate traffic within your site. Click tracking is enabled by default but can be turned off in your AddThis code.

How It Works

Click tracking works by appending a variable to your URLs when they are shared. We use a URL fragment (the part after the #) that looks like this:

http://example.com/blog#AHb4gs1hwck.facebook

We are able to detect this variable when users click on your shared links and we record the number of clicks back to your site.

Will this affect my SEO?

Our click tags use URL fragments so they are compatible with search engines. They will not affect your SEO because search engines discard URL fragments when indexing the web. URL fragments are also not transmitted from browsers to web servers so our tags should be compatible with other web analytics tools.

URL Fragment Compatibility

What if my site uses URL fragments?

If you use fragments to reference in-page anchors, for example a table of contents which links to:

http://www.example.com/help.html#getting-started

your links will continue to work properly. Similarly, if a user clicks a link to your site that contains a fragment, the page will scroll to your anchor as expected and we won't modify the URL. We respect your fragments in these cases, however this limits our ability to detect whether users subsequently share since the URL won't have our tracking fragment. You may have more shares and clicks than we report in our analytics, depending on how often URLs with fragments are shared.

If your site makes extensive use of fragments to create dynamic "hash-bang" or AJAX URLs it is probably not compatible with our click tracking variables. For example:

http://twitter.com/#!/addthis

In this example, the #! fragment will be present on every page view, conflicting with the URL fragment that we would place. We're looking into solutions that will address this compatibility issue. However, instead of hash bang URLs, we recommend using the History API (on supported browsers) to store your dynamic state in the URL path and parameters, leaving our fragment intact.

Troubleshooting

There are a few reasons why you might not see data:

  • Your content hasn't been shared yet.
  • Your content has been shared, but hasn't yet brought any traffic back to your site.
  • You may have an old version of AddThis, try updating your code.
  • The feature isn't set up correctly – please see the Client API page for help with installation. Note: Be sure that you have not defined addthis_config twice in your AddThis code!

Enabling or Disabling Click Tracking

To disable Click and Viral Lift tracking, include the following in your AddThis code:

<script type="text/javascript"> 
var addthis_config = {
     data_track_clickback: false 
} 
</script> 

To enable click tracking, use the above code but change false to true

Still need help?


General Topics

 

Developers