Share Count Recovery: How to Recover Your Social Share Counts If They’ve Been Lost



Why does recovering your social share counts matter?

We all know how important it is to display share counts for your content. Share Counts establish social proof and credibility, making a big difference to boost visitor confidence.

But what if you need to move your site or blog to a new domain name or more likely, move from HTTP to secure HTTPS? (Google is pushing for a shift to SSL, there is no secret in this) If you've already done so, you may notice that all your Share Counts for your content disappear as soon as you make the move…

To explain: Sharing destinations (like Facebook and Pinterest) typically track and report share counts separately for each URL pattern. When a site changes its URL pattern, the sharing destinations consider the new URLs as brand new pages, completely unrelated to the old URLs.

… and you’re left asking yourself how do I recover my share counts and all that hard-earned social proof you worked so hard for over months and years?! This can be incredibly frustrating. It is not a pleasant situation at all. So, what can you do?

What is Share Count Recovery

Fortunately, thanks to Shareaholic, you can now activate HTTPS and keep your Social Media Share Counts. You can even switch your domain (ex. moving from to, or to just the domain or URL structure and keep all your social share counts!

Shareaholic’s Share Count Recovery feature enables you to recover any missing shares that may have been lost in the URL change. Once the Share Count Recovery feature is active, Shareaholic will begin to fetch share counts for both URLs, add them together, and display the combined total. Voilà – all your hard work and social proof will, again, be fully accounted for and only display for all to see!

Note: You do not need to have had Shareaholic installed before your domain, URL structure or SSL switch. Share Count Recovery should work on any site at any time and activates immediately. Switch now and recover your valuable share counts!

Share Count Recovery is an active process. What this means is that we look up share counts for various versions of the URL and add them up when appropriate. So if you deactivate the feature, this process will stop and your share counts will go back to what they would normally be without Share Count Recovery enabled.

Recover Your Shares When...

How to Enable Share Count Recovery

  1. Login to your Shareaholic account and select a Site Profile from the My Sites dropdown on the top of the page.

    Note: Share Count Recovery is available to Site Profiles that are on a premium plan. If you are a premium plan subscriber with multiple site profiles in your account, the Share Count Recovery feature will be available for the Site Profile for which the premium plan is active.

  2. Click on Settings on the left-hand side of the page.


  3. Select the Sharing tab, and then click on Share Counts.


  4. If you have or are about to move your site from HTTP to HTTPS (SSL), click on the toggle button next to Combine HTTP & HTTPS Protocols.


    If you changed your base domain (for example, moved from '' to ''), click the toggle button next to Combine Previous Base Domain and enter your old base domain.


  5. Click 'Save Changes' and voilà - all your hard work and social proof will, again, be fully accounted for!

Combining Previous URL Structure

NOTE: This feature will only display recovered shares on the individual posts/pages - combined shares retrieved using this method will not be displayed on the index page or 'previews' of the posts.

  1. If you changed or are going to change the URL structure of your website, follow the above steps and click on the toggle button next to Combine Previous URL structure.
  2. Next, specify the URL/permalink structure that you are migrating away from.

    1. For WordPress Plugin users:

      If the website is running Shareaholic's WordPress Plugin, you will see a number of additional preset options in the Shareaholic admin interface that are likely familiar to you. They are a direct reflection of the common permalink options available in the WordPress permalink settings menu. You can pick from Plain, Day and Name, Month and Name, Numeric, Post Category, Post name or specify a Custom format --


      If you pick Custom Structure, you can use any of the following pre-built tokens:

    2. For All Other Platforms:

      Select "Custom Structure" and specify the previous URL structure in the Custom Structure settings.


      For the above example to work, you'll need to define the value for %postname%, by inserting the following custom code into your site's HTML template in the <head> section above the Shareaholic.js script tag:

      _SHR_SETTINGS_CUSTOM = {"url_components":{"postname":"INSERT_VALUE"}};

      You'll replace the 'INSERT_VALUE' text with your previous post URL structure. This section is fully customizable, and you can add and specify as many url_component tokens as you'd like! For example:

      _SHR_SETTINGS_CUSTOM = {"url_components":{"postname":"/blog/soup", "author":"jane"}};

Note: If you have selected both 'Previous Domain' and 'Previous URL Structure' in your Share Count Recovery settings, Shareaholic applies the Previous URL Structure to both your old and previous domains. This increases the number of calls that need to be made to fetch share counts. Keep this in mind as there may be page speed performance implications.

We encourage you to get creative! The possibilities are limitless.

Example 1:

The following is how you would recover social share counts after your WordPress blog is moved to SquareSpace. SquareSpace requires a folder slug for blog posts which leads to all counts being lost. Here's the solution to recover the counts -

// Removes "/blog" from current path and includes the URL for recovery
// NEW:
// OLD:
var shr_path_name = window.location.pathname.split('/');
if (shr_path_name[1] == 'blog'){
 var shr_url = shr_path_name.join('/');
 if (shr_url.substr(-1) != '/') shr_url += '/';
 _SHR_SETTINGS_CUSTOM = {"url_components":{"postname":shr_url}};

Example 2:

You want to remove the ".html" while retaining your social Share Counts. To recover social share counts after you remove ".html" extension from your URLs -

// Adds ".html" to current path and includes the URL for recovery
// NEW:
// OLD:

if (window.location.href.indexOf(".html") < 0) {
 var shr_pathname = window.location.pathname;
 if (shr_pathname.substr(-1) != '/') shr_pathname += '/';
 _SHR_SETTINGS_CUSTOM = {"url_components":{"postname":shr_pathname.replace(/\/$/, '.html')}};