Support » Plugin: WP-Piwik » http wordpress to https piwik

  • Dear all,

    I have wordpress hosted at and piwik hosted at I noticed the following line in the tracking code script:

    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://"

    1. Does this mean that the URL generated will always be http and not https, since the document URL is http? If so, how may I change that, since so far I have 0 hits on piwik, as if no one has ever accessed my blog.

    2. My SSL certificated is not trusted, will that cause a problem for wp-piwik plugin when it tries accessing the API?

    3. What’s Piwik path (PHP API, beta) for? Should I use it at all?

    Thanks in advance,

Viewing 1 replies (of 1 total)
  • Plugin Author braekling


    1.) Yes, the tracking code depends on the document’s protocol. If your page isn’t secured, why not also allow unsecured loading of the tracking code?

    2.) You should use a valid (=trusted) certificate if possible. You can disable SSL peer verification if you have no choice. Please also have a look at this thread regarding SSL:

    3.) If you don’t like to use the JavaScript tracking code and Piwik is running on the same server, you can track visitors by calling Piwik PHP classes instead of using JavaScript tracking. This will solve your SSL problem because the tracking code isn’t needed anymore. But this function is absolutely beta, so you have to try on your own if its working as expected.

Viewing 1 replies (of 1 total)
  • The topic ‘http wordpress to https piwik’ is closed to new replies.