Webmaster Sun Login
Not a member yet? Sign up

Share button count has reset to zero after switching to ssl (https)

  • HOME
  • FORUMS
  • WHAT'S NEW
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 7 of 7
    Stick this thread
  1. #1
    Join Date
    Jan 2015
    Location
    South Africa
    Posts
    743
    Blog Entries
    5
    Thumbs Up/Down
    Received: 179/0
    Given: 101/0
    Thanks
    257
    Thanked 577 Times in 311 Posts

    Share button count has reset to zero after switching to ssl (https)

    Hey guys, I need some help with recovering my social shares. After moving to ssl, my main php script is working fine. On my wordpress blog (which is in a folder (domain.com/folder)) everything seems to be working fine except that my sharing buttons have reset count, all my social shares are gone.

    Not just one sharing buttons but all, linkedin, twitter, facebook, g+ etc.

    I asked my host to do everything for me, all I did was to buy the ssl from a third party not the web host provider. It's been a couple of days and I'm not sure if the guy is going to find a fix. Please help guys because this is starting to affect my amazon sales, and now I see that the social shares did play a role to increase conversions.

  2. #2
    Join Date
    Mar 2013
    Posts
    397
    Thumbs Up/Down
    Received: 4/0
    Given: 24/0
    Thanks
    226
    Thanked 42 Times in 36 Posts
    Https and Http are two different URLs hence when you switched to https then number of shares on your social share buttons reset to zero.

    It happened this because you shared old URLs with Http, the counts will only show on http. It is impossible to show the counts in this case

    If someone has a tricky to show button counts for old urls (http) when switching to https then I also would to know about it.

  3. The Following 3 Users Say Thank You to Maxwell For This Useful Post:
    elcidofaguy (08-16-2015),Nytshade (08-16-2015),wms (08-16-2015)

  4. #3
    Join Date
    Jan 2015
    Location
    London
    Posts
    1,282
    Blog Entries
    1
    Thumbs Up/Down
    Received: 164/0
    Given: 106/0
    Thanks
    487
    Thanked 883 Times in 560 Posts
    Quote Originally Posted by Maxwell View Post
    Https and Http are two different URLs hence when you switched to https then number of shares on your social share buttons reset to zero.

    It happened this because you shared old URLs with Http, the counts will only show on http. It is impossible to show the counts in this case

    If someone has a tricky to show button counts for old urls (http) when switching to https then I also would to know about it.

    Indeed its two separate URLs i.e. http vs. https - they may be a solution however... From the top of my head I would look into iframes as a means to show the stats for the old URL... That way you can embed a http url within the https parent page...

    Alternatively I would remove https on pages where you do not need it i.e. product description pages etc. and only use it on pages where you capture user information.

  5. The Following 2 Users Say Thank You to elcidofaguy For This Useful Post:
    Nytshade (08-16-2015),wms (08-16-2015)

  6. #4
    Join Date
    Dec 2012
    Posts
    762
    Thumbs Up/Down
    Received: 117/0
    Given: 795/0
    Thanks
    918
    Thanked 448 Times in 218 Posts
    Quote Originally Posted by Nytshade View Post
    Hey guys, I need some help with recovering my social shares. After moving to ssl, my main php script is working fine. On my wordpress blog (which is in a folder (domain.com/folder)) everything seems to be working fine except that my sharing buttons have reset count, all my social shares are gone.

    Not just one sharing buttons but all, linkedin, twitter, facebook, g+ etc.

    I asked my host to do everything for me, all I did was to buy the ssl from a third party not the web host provider. It's been a couple of days and I'm not sure if the guy is going to find a fix. Please help guys because this is starting to affect my amazon sales, and now I see that the social shares did play a role to increase conversions.
    If you are using wordpress cms then you can use this code and put them into functions.php in your WP theme

    Code:
    function httpurl( $url ) {
    	return preg_replace( '/https:/i', 'http:', $url );
    }
    Code:
    function https_to_http() {
    	$url = get_permalink(); 
    	$url = httpurl( $url ); 
            return $url;
    }
    Now on your template, you can find data-url and adding https_to_http function to social script where to show number of shares on social network with old URLs (http).

    Hope it helps!

  7. The Following 3 Users Say Thank You to wms For This Useful Post:
    elcidofaguy (08-16-2015),nesito29 (08-18-2015),Nytshade (08-16-2015)

  8. #5
    Join Date
    Jan 2015
    Location
    London
    Posts
    1,282
    Blog Entries
    1
    Thumbs Up/Down
    Received: 164/0
    Given: 106/0
    Thanks
    487
    Thanked 883 Times in 560 Posts
    Quote Originally Posted by wms View Post
    If you are using wordpress cms then you can use this code and put them into functions.php in your WP theme

    ....

    Now on your template, you can find data-url and adding https_to_http function to social script where to show number of shares on social network with old URLs (http).

    Hope it helps!

    Nice one! It might work - but I suspect what will happen is that all web pages will redirect to http and hence there is no point in even having https in the first place.... Curious to know if it can... That said its a good place to insert additional code which you can place the iframe if need be and further you could add additional logic to check for the type of page/post e.g. check if its a post with specific tags then implement your new method....

    With the iframe approach at least the URL displayed will be https and you can then embed the old URL as how you want... Just in case here is an example of the iframe code:

    Code:
            <div id="content">
                <iframe width="100%" height="100%" frameborder="0" src="http://mywebsite.com" />
            </div>
    In the above example an entire page is captured... You can also capture portions and position it with using div tags i.e just encapsulate the social media plugin....

    Will it work ....? Nytshade buddy do keep us posted ;-)

  9. #6
    Join Date
    Jan 2015
    Location
    London
    Posts
    1,282
    Blog Entries
    1
    Thumbs Up/Down
    Received: 164/0
    Given: 106/0
    Thanks
    487
    Thanked 883 Times in 560 Posts
    Just reading more into this... Its not that straightforward with embedding http into https... It can be done but you need to do it by proxy e.g.

    Code:
    https://mysite.com That has a iframe linking to...
    
    https://mysite.com/utilities/redirect.html Which has a simple js redirect script like...
    
    document.location.href ="http://mysite.com"
    I found this article which may help others....

  10. The Following User Says Thank You to elcidofaguy For This Useful Post:
    Nytshade (08-16-2015)

  11. #7
    Join Date
    Dec 2012
    Posts
    762
    Thumbs Up/Down
    Received: 117/0
    Given: 795/0
    Thanks
    918
    Thanked 448 Times in 218 Posts
    Nice ones, Sid!

    I would like to give Nytshade any better ideas to count SHAREs on both http and https.

    I will not show the details with code, only show ways you can do with it.

    Firstly, this is important for you to decide, should count shares from https or http.

    You will use some lines of codes to count the shares from old urls (http) and see it if the counts > 5 or > 10 then you will use http.

    If the count is lesser than 5 then you will use new url (https) for sharing to social networks.

    I want to show this because if the counts on your old URLs lesser than 5 then it's not necessary to show the count and you can use https for new shares and get new counts.

    Cheers,

  12. The Following User Says Thank You to wms For This Useful Post:
    Nytshade (08-18-2015)

Newer Threads

  1. anhbloginc
    Selling Guest Post On Tech Site With DA/PA: 49/41
    By anhbloginc in forum Link Sales
    danno
    Replies: 8 | Views: 3947
    Last post by danno, 09-24-2015, 01:31 PM
  2. trustdnb
    Dewlance
    Replies: 3 | Views: 2531
    Last post by Dewlance, 10-24-2015, 01:06 PM
  3. JakePeter
    johnfiore
    Replies: 5 | Views: 1804
    Last post by johnfiore, 09-07-2015, 12:27 PM
  4. jitendrasurve
    jitendrasurve
    Replies: 1 | Views: 1915
    Last post by jitendrasurve, 08-18-2015, 06:32 AM
  5. amircoh44
    elcidofaguy
    Replies: 1 | Views: 1291
    Last post by elcidofaguy, 08-17-2015, 10:27 PM

Older Threads

  1. Andre
    anhbloginc
    Replies: 11 | Views: 4809
    Last post by anhbloginc, 09-14-2016, 05:29 PM
  2. pathfinder
    cwvps1
    Replies: 10 | Views: 3070
    Last post by cwvps1, 08-31-2015, 12:41 PM
  3. paulgl
    elcidofaguy
    Replies: 3 | Views: 1480
    Last post by elcidofaguy, 08-16-2015, 10:16 AM
  4. lkovnih226
    ElixantTechnology
    Replies: 2 | Views: 2074
    Last post by ElixantTechnology, 08-16-2015, 06:36 PM
  5. Kal K
    AdsensePro
    Replies: 3 | Views: 2781
    Last post by AdsensePro, 08-29-2015, 06:47 AM

Latest Threads

  1. vishwa
    vishwa
    Replies: 0 | Views: 82
    Last post by vishwa, Today, 01:17 PM
  2. ORLOVA
    ORLOVA
    Replies: 4 | Views: 594
    Last post by ORLOVA, 09-20-2019, 04:49 AM
  3. paul1129
    Alex Thompson
    Replies: 1 | Views: 162
    Last post by Alex Thompson, 09-17-2019, 12:46 PM
  4. susanburling
    Rob Whisonant
    Replies: 4 | Views: 221
    Last post by Rob Whisonant, Today, 10:26 PM
  5. StephanieWilliams
    sophiedooley54
    Replies: 2 | Views: 127
    Last post by sophiedooley54, 09-19-2019, 10:51 AM

Similar Threads

  1. dcb1101
    Mark007
    Replies: 7 | Views: 1441
    Last post by Mark007, 06-11-2015, 02:25 PM
  2. Eoon
    ElixantTechnology
    Replies: 3 | Views: 2072
    Last post by ElixantTechnology, 02-04-2015, 05:56 AM
  3. Starfire
    buzybee-kevin
    Replies: 7 | Views: 2874
    Last post by buzybee-kevin, 11-27-2014, 05:18 AM
  4. sarataylor
    Jack London
    Replies: 1 | Views: 2288
    Last post by Jack London, 12-05-2013, 11:30 AM
  5. silverice@282
    gannu1991
    Replies: 1 | Views: 2233
    Last post by gannu1991, 12-02-2013, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2019, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!