AddThis: Cutomization

I added the Addthis widget to the website. Here is the auto-generated code that I changed a bit:

<script type="text/javascript"> var addthis_config = { "data_track_clickback": true, services_compact: 'facebook, twitter,googlebuzz, digg, stumbleupon', services_expanded: 'facebook, twitter,googlebuzz, digg, stumbleupon', ui_cobrand: "ABC Company", ui_header_color: "#ffffff", ui_header_background: "#000000" } </script> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dde778a54a20e05"></script> <script type="text/javascript"> var addthis_share = { templates: { twitter: 'check out {{title}} : {{url}} @ABC' }, url_transforms : { clean: true } } </script> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_compact"> <img alt="Share" src="../images/icons/share.gif" /><img alt="ABC" src="../images/icons/financial_tip.png" /> </a> </div> 

I have added links to facebook, twitter, google buzz, StumbleUpon and Digg inside the compact and extensible ADdthis widgets. When I click the Share link, the following window appears: enter image description here I do not want the Addthis footer to appear in the popup. I tried to find the div with loading jquery doc and delete it ... but it didn't help.

Another thing, when I press FB, it opens my account and the following message about publishing on my wall appears: enter image description here Addthis adds some garbage at the end of the common URL: for example, after index.aspx, starting C # before; facebook .. this adds some data that doesn't matter ... how to fix it. Any idea ... If I post it on twitter, the Twitter login screen enter image description here I do not want the Addthis message to be in the footer. How to hide / delete it Like FB, when I log in to my Twitter account, some garbage is added to the end of the shared URL: enter image description here

In addition, whenever I click the icon inside the compact Addthis, Fb or twitter list, a small window appears: enter image description here

Can anyone help me with this.

THANKS.

+6
source share
2 answers

About the problem with twitter, you can use something like this.

 <script type='text/javascript'> var addthis_share = { templates: { twitter: '{{title}}: {{url}}' } } </script> 

And change

  <a class='addthis_button_tweet' tw:via='YOUR-USER-NAME'/> 

I have never tried other services. But look at the Addthis API. I think you can find out something.

+3
source

Malinda’s answer is mostly correct, but doesn’t explain what is happening - I think it’s important to understand a little more.

The question says: "Addthis adds some garbage to the end of the shared URL." This is not trash. The value after #hashtag is a semi-random number generated by Addthis that can help you create really useful social media posts that can even show you which of your stocks are re-released - an essential component of modeling virus growth rates (which is what you want from social sharing ) You can learn more about this here: http://support.addthis.com/customer/portal/articles/381254-address-bar-sharing-analytics .

What the Malinda solution does is override the default Addthis Twitter template to omit tracking data. It certainly works - you just need to understand that you are refusing to track your campaign on social networks.

+3
source

Source: https://habr.com/ru/post/889994/


All Articles