Integrating AddThis with BlueConic

AddThis allows you to register Event Listeners for all sharing actions. The best way to use this API is to place the following piece of script in your pages, right after the AddThis API has loaded:

addthis.addEventListener('addthis.menu.share', function(response) { 
    if (window.blueConicClient && response.data) {
        window.blueConicClient.event.publish('addthis_' + response.data.service);
    }
});

This will publish an event to BlueConic using the following syntax: “addthis_<service code>”. A full list of service codes can be found here.

Examples

Facebook share:              addthis_facebook
Linkedin share:                addthis_linkedin

After the script has been added to your website you can configure listeners to subscribe to these events. This article describes how custom events in BlueConic work.