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

Potential SSL-related problems with default tracking code #2182

Closed
anonymous-matomo-user opened this issue Mar 13, 2011 · 1 comment
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

This code

var pkBaseURL = (("https:" == document.location.protocol) ? "https://foo.com/piwik/" : "http://foo.com/piwik/");

is only correct if

  • Piwik is installed on the same host
  • of both hosts use SSL or not

Maybe it would make more sense to default to http always.

@mattab
Copy link
Member

mattab commented Mar 13, 2011

The code works in all cases, and many ecommerce shops are using piwik succesfuly (otherwise it throws a SSL warning on SSL pages when trying to load a non ssl beacon)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants