Customize
Share counts
Switch counters on and every button carries its own number. A service nobody has shared yet shows nothing at all rather than a zero, because a row of zeroes on launch day is worse than no numbers.
Live demo
Running on this pageLive, counting this page. The numbers come from data.addtosite.com; if it is unreachable the buttons simply appear without badges and still share.
The code
This is the demo above, verbatim. Nothing is shortened for the page.
<script>window.ats_config = { counters: true };</script>
<div class="ats_kit ats_kit_size_32">
<a class="ats_button_facebook"></a>
<a class="ats_button_x"></a>
<a class="ats_button_linkedin"></a>
<a class="ats_button_whatsapp"></a>
<a class="ats_dd"></a>
</div>
<script async src="//static.addtosite.com/widget.js"></script>What is counted
A press, not a view. The widget sends one fire-and-forget ping when somebody actually uses a button. Nothing is recorded when the page merely loads.
Counting survives the usual URL noise
http and https, a missing www, a trailing slash and campaign parameters all fold into the same count. A changed path is the one thing it cannot guess — that is what count recovery is for.