Trouble with https site on IIS

(cbartolain) #1

Hi all,

I have a couple sites set up on Piwik with no issues. Yesterday, I tried to set up a new site but I am having issues. I set up the site in the administrator, set up the urls - originally as http, then as https. I added the tag to a footer and made sure the footer was on every page. I also tried putting the tag directly on a couple pages in my testing.

I found one post about apache setup and https but I am using IIS 7, can anyone help me with why this does not work and what do I need to do to get it set up?

All of my http pages work as expected, no issues, but this particular site is all https

Any help is appreciated
Thanks in advance!

(vipsoft) #2

update to 0.4.2.

(cbartolain) #3

I upgraded to 0.4.2 this morning, went to the site again, and it is still not collecting the statistics. Any ideas on why?

(vipsoft) #4


I’m guessing, the pages you’re trying to track are https only, but the tracker is http only. You’ll have to change your tracking code to not use the protocol of the page being tracked. i.e., just hardcode it, e.g.,

var pkBaseURL = ‘http://myserver/piwik/’;

(cbartolain) #5

I tried changing the value to a hard-coded value as suggested, but it still isn’t tracking data

(cbartolain) #6

Okay - here is something very odd…

When I put this on an individual page, it works great. However, to save myself possible maintenance later, I created a footer.html file with just the piwik tag in it. I included the footer.html in the same place the piwik tag was and it does not work that way…

Any ideas?

Thanks for all the help so far - you have been great!

(vipsoft) #7

How about?

<!-- Piwik -->
<script type="text/javascript" src="">
<script type="text/javascript">
var pkBaseURL = "";
try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 6);
} catch( err ) {}
<!-- End Piwik Tag -->

(cbartolain) #8

Nevermind - I’m a ditz…

I’m in an html site, not my usual aspx

All fixed, thank you for all the help!

(cbartolain) #9

ok… not quite all fixed, but mostly fixed :slight_smile:

It works great from IE and is tracking now - but from Chrome and Firefox it is not tracking. I added an alert to make sure it was getting to the code and that pops up, but the visit does not get tracked.

Any ideas?