How To Fix StatCounter “Unknowns” Problem with WordPress – It’s easy!
Report by Jim Lantern
4:00 p.m. CT Wednesday 14 January 2015
WordPress Users who use StatCounter in addition to WordPress Stats:
In StatCounter report page – Recent Visitor Activity.
Entry Page, Exit Page, Visit Page. Those usually show the URL of the page visited – the article you wrote.
Problem has been those have been showing “Unknown” instead of a URL. Very frustrating.
When I first inquired, Support told me it is because of new devices used to access the Internet, of which StatCounter can’t see what they visit at WordPress.
The truth is, once upon a time, WordPress was http. Now it’s https. StatCounter is still http. D’oh!
- Go to Widgets.
- Go to the text box you used to install the StatCounter code.
- Look at the code. See two addresses, both starting http.
- Add an s to the http so it is https. Do that to both.
Fixed. However, it does not restore previous Unknowns. Will work for all new visitors after the fix.
Update – 21 January 2015: Also, in Config at StatCounter, make sure your project URL is correct – if it is https then it should be https there too. IF you suddenly experience bizarre connection failures at WordPress, then uninstall the code, wait until into the next day’s stats, and then reinstall it. I’m not certain the StatCounter code caused that to happen to me yesterday, but I suspected it, removed it, and the problem stopped. I suspect it was not a technical issue, but possibly a security issue – possibly StatCounter compromised – a hacker somehow got in that way to WordPress and somehow blocked my connection. The https should be secure – that’s what the s is for. My gmail account, used for WordPress, was interfered with too. It could be a technical problem, and it could be a bizarre coincidence that the connection failures stopped after I removed the StatCounter code. I’ve reinstalled it today, and so far no new problems. By the way, I had to change my password at StatCounter, too, as well as gmail and here at WordPress. If it was a hacker, could be someone in China or more likely Russia. Attack/problems began during night here, day over there. However, could be a third shift person here in US. Could be someone who does not want you to be able to use StatCounter to see their visits at your WordPress site, and possibly identify who it is or where they work, as well as what they are reading at your site.
+ + +