Our Blog uses AddThis to enable sharing of our posts. We want to track the total number of shares across all networks in one consolidated section, rather than displaying individual share counts for each network.
This is the current code snippet:
<div class="addthis_sharing_toolbox" style="text-align:center;display:block;">
<a class=“at-share-btn at-svc-facebook”>… </a>
<span class="at_flat_counter">50</span>
<a class=“at-share-btn at-svc-twitter”>… </a>
<span class="at_flat_counter">23</span>
<a class=“at-share-btn at-svc-tumblr”>… </a>
<span class="at_flat_counter">1</span>
<a class=“at-share-btn at-svc-google_plus”>… </a>
<span class="at_flat_counter">2</span>
<a class=“at-share-btn at-svc-linkedin”>… </a>
<span class="at_flat_counter">1</span>
</div>
We aim to aggregate the numbers within the span tags and calculate the sum to display the total count in a single field. However, we are uncertain if this can be achieved.
After totaling the shares, we will utilize display: none;
to hide the individual share counts provided by AddThis within the
<span class="at_flat_counter">1</span>