Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS issue #11477

Closed
MESWEB opened this issue Mar 12, 2017 · 2 comments
Closed

HTTPS issue #11477

MESWEB opened this issue Mar 12, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@MESWEB
Copy link

MESWEB commented Mar 12, 2017

Mixed Content: The page at 'https://domain.com/index.php?' was loaded over HTTPS, but requested an insecure image 'http://piwik.domain.com/'. This content should also be served over HTTPS.

@sgiehl
Copy link
Member

sgiehl commented Mar 12, 2017

please update your javascript tracking code. The code generator should already give you a code where javascript will be included without protocol. It should look like this:

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//piwik.domain.com/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    
  })();
</script>
<script type='text/javascript' src="//piwik.domain.com/piwik.js"></script>
<!-- End Piwik Code -->

@sgiehl sgiehl closed this as completed Mar 12, 2017
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Mar 12, 2017
@MESWEB
Copy link
Author

MESWEB commented Mar 12, 2017

Yes I do that but nothing work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants