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

Javascript missing httpS #1653

Closed
anonymous-matomo-user opened this issue Aug 27, 2010 · 1 comment
Closed

Javascript missing httpS #1653

anonymous-matomo-user opened this issue Aug 27, 2010 · 1 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.
Milestone

Comments

@anonymous-matomo-user
Copy link

Installed right now for the first time piwik (version 0.9.9).
I am monitoring a non-encrypted site (http://www.whatever.com) and my piwik is accessible from a SSL-site (httpS://access.whatever.com).

The javascript that was generated did not bring back any stats to piwik. SEEMS now to be working after adding the "S" at the end of all the "http" (without the "S" - httpS). Here is the original javascript that was generated during the installation (the "wrong" one):

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://access.blah-blah.ch/" : "http://access.blah-blah.ch/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://access.blah-blah.ch/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tag -->

Don't know anything about javascript, so I hope that adding the "S" to all the "http" entries was correct.

Thank you!
(Piwik looks great!)

@robocoder
Copy link
Contributor

Sorry. Not a bug. The tracking code is for typical setups. (http-to-http or https-to-https). You're welcome to edit it, of course.

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.0 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
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

3 participants