@agokulravikumar opened this Issue on June 20th 2017

I get the error and the Piwik 3.0.4 integration is not getting hits. Both the request and host server are https and still the error throws up in the console.

Kindly check the error on console of the site https://blog.furnituremagik.com and the piwik.js file when accessed in an another tab opens perfectly.

It is working fine when integrated with a http domain.

Tried all possibilities but nothing worked. Need help in resolving.

@Findus23 commented on June 20th 2017 Member


The problem is exactly what chrome tells you: an insecure response.

The piwik url in your tracking URL is https://www.fmgk.in/analytics/piwik.js, but if one tries to request this url, the server responds with a file that is encrypted with a certificate that is only valid for fmgk.in. (without www)
You can test this with curl:
curl -v https://www.fmgk.in

* Server certificate:
*  subject: CN=fmgk.in
*  start date: Jun 19 16:23:00 2017 GMT
*  expire date: Sep 17 16:23:00 2017 GMT
*  subjectAltName does not match www.fmgk.in
* SSL: no alternative certificate subject name matches target host name 'www.fmgk.in'
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (51) SSL: no alternative certificate subject name matches target host name 'www.fmgk.in'

The solution is to also request a let's encrypt certificate for the www. domain (-"d www.example.com -d example.com"


  • https://www.fmgk.in redirects to http://furnituremagik.com without https
    • You have multiple debugger; lines left in http://furnituremagik.com/js/default.js which causes JS-execution to halt if one has the developer tool open while loading the page.
  • The Piwik Forum is a better place to ask general questions, that are not necessary bugs in piwik.
@agokulravikumar commented on June 20th 2017

Thanks and after installing certificates to both www and non www it is finally working.

This Issue was closed on June 20th 2017
Powered by GitHub Issue Mirror