HTTPS and Multiple domains


(Haran) #1

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 piwik.xxxx.com
Website1 running on www.yyyyy.com
Purchase process running on a different domain with HTTPS zzzzz.com

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 analytics.xxxx.com but I’ve one for secure.xxxx.com 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 secure.xxxx.com/piwik.php in HTTPS I get “Piwik is a free open source web analytics alternative to Google analytics.” while at secure.xxxx.com/piwik.php?idsite=7, always in HTTPS, I get a blank page.

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

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://secure.xxxx.com/" : "http://piwik.xxxx.com/");
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);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="https://secure.xxxx.com/piwik.php?idsite=7" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tag -->

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

Thanks,
Haran


(vipsoft) #2

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.


(Haran) #3

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


(vipsoft) #4

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