Support

Adding Parameters to URLs

It's easy to add arbitrary parameters to your URLs at share time.

var addthis_share = {
     url_transforms : {
         add: {
             my_favorite_number: '6',
             my_name: 'matt'
         }
     } 
} 

Using this example, the URL http://example.com would become:

http://example.com?my_favorite_number=6&my_name=matt

We'll also template the special strings {{code}}, {{url}}, and {{title}} with the service code being shared to, the url being shared, and the title of the page being shared, respectively. So if you wanted to log the referring service using your own system, you might define the following transform:

var addthis_share = {
     url_transforms : {
         add: {
             referring_service : '{{code}}'
         }
     } 
} 

Using this example, when sharing, e.g., to Google, http://example.com would become http://example.com?referring_service=google, allowing you to easily track where your referred users were coming from.

For a comprehensive discussion of all the ways AddThis can modify your URL at share time, see the URL Transforms section of our Client API.

Last Updated: Oct 18, 2013 03:29PM EDT
help@addthis.com
http://assets02.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete