Display http vs https


#1

Hi!

I use piwik to monitor a webpage that is served as http and https. Basically it is sufficient for me to know that Y people accessed page X but out of curiosity I’d like to know how many people actually use HTTPS

Looked around and didn’t find anything. Not even a plugin.

Am I looking wrong? Or is this an application for a cutom variable?

Bernhard


#2

OK. I figured it out: it can be done with a custom variable. Something like (this code is for integrating piwik into mediawiki. Adapt for your use)


_paq.push(["setCustomVariable", 1, "protocol", document.location.protocol, "visit"]);

adds a variable protocol that will resolve to “http:” and “https:” for each visit