Track website with both http and https areas


(carlinhush) #1

Hi, while digging through the forum I found out that in order t track a site on https Piwik itself has to run on https as well. Also, for tracking a http site Piwik has to run on http.

Now, I have one site that uses both: http and https. My Piwik runs on https. Is it possible to track both instances of the site? Do I have to modify anything? Or am I out of luck?


(Stefan Giehl) #2

If Piwik runs on https you should be able to track both (https and http).
If one site runs both it might be possible that some tracked pages within piwik might be tracked/displayed with the wrong protocol


(Matthieu Aubry) #3

Now, I have one site that uses both: http and https. My Piwik runs on
https. Is it possible to track both instances of the site? Do I have to
modify anything?

if your piwik only runs on HTTPS you need to edit the JavaScript code and replace // by https:// so it forces to use HTTPS even on http pages


(carlinhush) #4

Thanks, matthieu. Will alter the code now.