HTTPS and Multiple domains

Hi guys,
I’m new to this form but I’ve been using piwik for some months already and it’s great.

I’ve got an issue in tracking visitors on https, this is my configuration:

Piwik installed on
Website1 running on
Purchase process running on a different domain with HTTPS

I’ve no problem in tracking visitors on the website but, since the ecommerce is on a different domain (when you click on Buy a new window opens).
I don’t have a valid ssl certificate for domain but I’ve one for which resides on the same server so I’ve created a symbolic link to piwik.php on this domain and it lookks like it works. If I open in HTTPS I get “Piwik is a free open source web analytics alternative to Google analytics.” while at, always in HTTPS, I get a blank page.

I’ve installed the following tracking code on (HTTPS) but piwik doesn’t track anything:

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "" : "");
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", 7);
} catch( err ) {}
</script><noscript><p><img src="" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tag -->

Do you have any idea of how to make it work?


Looks fine to me. You’re getting the text because you didn’t specifiy the idsite parameter. You get the blank page because the tracker image is a transparent 1x1 pixel image.

Yes, it looks fine to me as well but it doesn’t work. style_emoticons/<#EMO_DIR#>/sad.gif

Comment out the try and catch lines, and see if the browser reports any errors.