Change site from http to https

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

  1. piperh

    piperh New Member

    Aug 9, 2010
    Likes Received:
    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):

    var sc_project=0000000;
    var sc_invisible=1;
    var sc_partition=11;
    var sc_security="00000000";
    <script src=""></script>
    <noscript><a href="" target="_blank"><img src=";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.

  2. bobber216

    bobber216 New Member

    Nov 15, 2007
    Likes Received:
    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