Sharing Customization

Link Tracking & URL Shorteners

You can shorten the URL and/or attach parameters to shared links to get analytics on clickthrus. This setting will only modify shared links for services where shared link tracking is appropriate (i.e. sharing to Twitter and Facebook, but not bookmarking in Google Bookmarks or Delicious).

In Drupal, add the following JavaScript code to your "Additional JavaScript" box in Configuration > System > AddToAny > Additional Options.

In WordPress, add the following JavaScript code to your "Additional Options" box in Settings > AddToAny.

Track shared links in Google Analytics.

var a2a_config = a2a_config || {};
a2a_config.track_links = 'ga';
a2a_config.track_links = 'ga';

Track shared links using the bit.ly URL shortener.

var a2a_config = a2a_config || {};
a2a_config.track_links = 'bitly';
a2a_config.track_links_key = 'addtoany|R_4ed7bcc558a86d04901bfae7c3a20bb5'; // username|API key delimited by |
a2a_config.track_links = 'bitly';
a2a_config.track_links_key = 'addtoany|R_4ed7bcc558a86d04901bfae7c3a20bb5'; // username|API key delimited by |

Track shared links using the awe.sm URL shortener (and optionally Google Analytics).

var a2a_config = a2a_config || {};
a2a_config.track_links = 'awesm';
a2a_config.track_links_key = '7e9fd830bd2402479a0603c05632f638a3ea76cb241212dd8c95c17a99f3d01b';
a2a_config.track_links = 'awesm';
a2a_config.track_links_key = '7e9fd830bd2402479a0603c05632f638a3ea76cb241212dd8c95c17a99f3d01b';

Use Google's URL shortener, goo.gl, for short URLs. Goo.gl doesn't offer publisher-side analytics, but serves as a reliable shortener.

var a2a_config = a2a_config || {};
a2a_config.track_links = 'googl';
a2a_config.track_links = 'googl';

Track shared links using a custom URL or custom short URL.

var a2a_config = a2a_config || {};
a2a_config.track_links = 'custom';
a2a_config.track_links_key = 'http://example.com/abc123';
a2a_config.track_links = 'custom';
a2a_config.track_links_key = 'http://example.com/abc123';
Share