https://www.statcounter.com/counter/counter.js net::ERR_EMPTY_RESPONSE

dmn

New Member
#5
Yes i have the same problem on my site sividolummakinasi.com i found out my site was taking to long to open. I checked my server settings even my wordpress and changed the settings. Then i found out my site was working well on https (secure connection) but not on http. so i have changed the server to https and even changed the google settings and adv to https links. today i found out statcounter code was the real problem. i have been using statcounter for more than 10 years. I never had any problem with it. I had to delete the code. Now my site works the way it is but i would like to use my counter. Please fix the problem as soon as possible.
 
#6
Please fix this problem as soon as possible, this problem may happen only in Turkey (above comment is from Turkey) I have premium account and using statcounter for more than 10 years. I do not want to change my counter service
 
#7
If your site is being accessed via https, your Statcounter tracking code also has to be by https. You need to get a new copy of it and change it on your site. Mind you the https versions for Statcounter tracking code used to only be available for upgraded accounts, not sure if it's the same now.
 

dmn

New Member
#8
yess it was https code and it was working well.. never had any problem with it. i reloaded the code and now its keep waiting for statcounter to respond.. Bytheway the problem is not new. i guess its like this for a couple of weeks.
 
#9
nor http neither https is not loaded
counter.js (failed) document (unknown) 0 B 0 ms

if any admin does not answer i will remove codes from all my websites tomorrow
 
#11
Your http url redirects to http://www.sividolummakinasi.com/?i=1 (by javascript ). Why?
In any case you should ONLY use one version and 301 redirect the other one to it.
If you are able to use the .htaccess file see this tutorial:
https://faqhowto.info/only-validation/301-redirect-https-to-http-or-viceversa-on-apache-server/

https://www.sividolummakinasi.com/ is not a fully secure web page, because it includes a non-secure script:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2'></script>

All you need to do is change that to:

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2'></script>
 
#12
Code:
<script async type="text/javascript">
var sc_project=***;
var sc_invisible=1;
var sc_security="***";
var sc_https=1;
var sc_remove_link=1;
</script>
<script async type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><img class="statcounter"
src="//c.statcounter.com/***/0/***/1/" alt="Web
Analytics"></div></noscript>
I re uploaded the code check if you would like to see the problem of mine. https://www.sividolummakinasi.com/ and http://www.sividolummakinasi.com/ . you will see it works on https but not on http.. Milliforum i found out if you dont use secure code tag then your problem will be solved but not on secure :) so you have to chose one of them..
 

dmn

New Member
#13
Your http url redirects to http://www.sividolummakinasi.com/?i=1 (by javascript ). Why?
In any case you should ONLY use one version and 301 redirect the other one to it.
If you are able to use the .htaccess file see this tutorial:
https://faqhowto.info/only-validation/301-redirect-https-to-http-or-viceversa-on-apache-server/

https://www.sividolummakinasi.com/ is not a fully secure web page, because it includes a non-secure script:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2'></script>

All you need to do is change that to:

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2'></script>
thank you for your relay. i checked the code but i guess it comes from one of the pluging in wordpress. Woocommerce i guess.
But my poblem is diffrent my site works fine in secure connection and not on none secure connection. i can get in to page with https but there is no luck with http. only in admin panel which there is no counter code in it.
bytheway thank you for your relays.
 

dmn

New Member
#14
Code:
<script async type="text/javascript">
var sc_project=***;
var sc_invisible=1;
var sc_security="***";
var sc_https=1;
var sc_remove_link=1;
</script>
<script async type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><img class="statcounter"
src="//c.statcounter.com/***/0/***/1/" alt="Web
Analytics"></div></noscript>
swich default code to basic Non-JavaScript counter code. check if it solves your problem.
it looks like this
<a title="web statistics" href="http://statcounter.com/"
target="_blank"><img
src="//c.statcounter.com/your codes/0/your codes/1/" alt="web
statistics" ></a>
 
#15
The non javascript counter will only log limited information. It's not to be used unless you are unable to add the full tracking code with javascript, like it would happen on some platforms where you are not permitted to add external javascript (e.g. Google SItes).

Anyway now I'm getting confused with 2 apparently different users posting. I don't see who's got what issue.
The original poster is milliforum. Please, you need to restate your problem clearly and provide your website url.

For poster nmn please refrain from posting in this thread. If you have an issue open your own thread. Thank you.
 
#17
OK I will check that out.
But since you say it works fine with a VPN, then what this means is that Statcounter urls are blocked by your ISP.
 
#19
Miliforum, it's your ISP that does not let you get to the Statcounter script url. Or maybe your anti-virus or anti spyware program that doesn't allow it. Statcounter cannot serve anything else since it's not even being accessed.
 
Top