How to track http and https

I am having trouble getting Piwik working on the secure part of my website. I have the same domain with http:// and https://. Same domain name and both on the same server. Piwik works fine for[/url], but I can’t get it to work for [url=] Piwik is installed in the httpdocs folder on the server, do I need to install it in the httpsdocs folder as well. I have the tracking code on all pages in http and https.

You need to change your host configuration in apache, so that https uses the same directory. Sorry, I can’t be more specific.

Maybe you have to define the domain with http and https under URLs in the backend of piwik?