WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
http wordpress to https piwik (2 posts)

  1. picosam
    Member
    Posted 9 months ago #

    Dear all,

    I have wordpress hosted at http://www.mydomain.com and piwik hosted at https://piwik.mydomain.com I noticed the following line in the tracking code script:

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

    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,
    Sammy

    http://wordpress.org/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 9 months ago #

    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: http://wordpress.org/support/topic/plugin-wp-piwik-https-ssl-support?replies=3

    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.

Reply

You must log in to post.

About this Plugin

About this Topic