WordPress.org

Forums

WP-Piwik
[resolved] Force SSL in tracker code (6 posts)

  1. khromov
    Member
    Posted 11 months ago #

    Would it be possible to create an option that would force WP-Piwik to always use SSL when sending data in the tracking script?

    Thanks!

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

  2. braekling
    Member
    Plugin Author

    Posted 11 months ago #

    This is quite easy and can be done with one of the next releases.

    As a workaround, got to line 224

    echo $strTrackingCode;
    and add this line BEFORE:

    $strTrackingCode = str_replace('(("https:" == document.location.protocol) ? "https" : "http")','"https"',$strTrackingCode);

    But just to understand your request: does it make sense to deliver the tracking code secured while the page itself isn't?

  3. khromov
    Member
    Posted 11 months ago #

    Sounds good!

    I just want to enable force_ssl=1 on my Piwik install.
    http://piwik.org/faq/how-to/faq_91/

    It's easiest to run everything under HTTPS. (You don't need to setup multiple vhosts for example.)

    The demand for this feature will probably increase as people adapt SPDY where SSL is forced.

  4. braekling
    Member
    Plugin Author

    Posted 11 months ago #

    Ah, ok, I understand the benefit - thank you. :)

  5. braekling
    Member
    Plugin Author

    Posted 11 months ago #

    The feature will be part of 1.0. A first release candidate is scheduled for the end of July.

  6. khromov
    Member
    Posted 11 months ago #

    Yay!

Reply

You must log in to post.

About this Plugin

  • WP-Piwik
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.