Change site from http to https

Discussion in 'Discussion' started by piperh, Oct 4, 2017.

Tags:
  1. piperh

    piperh New Member

    Joined:
    Aug 9, 2010
    Messages:
    6
    Likes Received:
    0
    Hello. I changed a client site to https and noticed today that the stats are really low (the site itself is working fine). From other threads I've read it seems that I should change the statcounter code in the web pages so that all urls with the script tags must be changed to https, but I'd like to check here that this is correct. The new code would be (project and security numbers changed):

    <script>
    var sc_project=0000000;
    var sc_invisible=1;
    var sc_partition=11;
    var sc_security="00000000";
    </script>
    <script src="https://www.statcounter.com/counter/counter.js"></script>
    <noscript><a href="https://www.statcounter.com/" target="_blank"><img src="https://c12.statcounter.com/counter...;java=0&amp;security=00000000&amp;invisible=1" alt="statistics"></a></noscript>

    Can you confirm that this is what I should change in all the site pages?

    Also, on the statcounter web page in Config > Edit project settings > Website addresses, I've changed the site url to https.

    Thanks
     
  2. bobber216

    bobber216 New Member

    Joined:
    Nov 15, 2007
    Messages:
    9
    Likes Received:
    0
    I had the same problem after installing SSL certificate. All hits to my site stopped. I changed my Statcounter code to match yours without waiting for confirmation because it's easy enough to undo if problems arise. It worked. Hits started recording immediately. I did not change url to https in website addresses.
     

Share This Page