Customize URL in AddThis
Asked Answered
M

1

6

How can i access the URL generated in addthis and append a query string before it gets emailed to other persons?

Thanks

Mobility answered 25/9, 2009 at 10:18 Comment(0)
U
6

From their site:

To define the URL to share you do it in one of four ways. For our newest tools, use the data-url and data-title parameters, like this:

<div class="addthis_sharing_toolbox" 
     data-url="THE URL" 
     data-title="THE TITLE">
</div>

If the code you're using has the addthis_toolbox in it, use the addthis:url and addthis:title parameters, like this:

<div class="addthis_toolbox addthis_default_style " 
     addthis:url="THE URL" 
     addthis:title="THE TITLE">

or you can set it using the addthis_share variable, which will change the URL and title shared for all the AddThis tools on the page:

<script type="text/javascript"> 
    var addthis_share = {    
        url: "THE URL"    
        title: "THE TITLE" 
   }
</script>

In any case, be sure to replace THE URL and THE TITLE with the URL and title of the pages to share.

Unstoppable answered 15/7, 2014 at 9:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.