[SOLVED]Tracking stopped for one site since update


Hi there,

I have two sites: one is my own: www.easypeasypcs.co.uk and the other I host for a local charity: www.pactforautism.org.uk

Both of these sites are hosted with Hostgator. I originally set up my own site and then agreed to help out the charity. I set up an addon domain, so that people could access the charity site via www.pactforautism.org.uk. This addon domain is actually set up by my host as a subdomain, but it’s accessible through the www.pactforautism.org.uk address.

So, in my public site root, i installed piwik - all good. I added my sites:

Since the upgrade (and I’m pretty sure this was the only thing I changed) the www.easypeasypcs.co.uk address isn’t working (not tracking).

I have set the Piwik cookie to track my visits and my server error logs don’t seem to show anything related to Piwik.

I would really like to get this going again.


P.S. I do note that the tracking code for both sites seems identical - is this right?

EDIT: I have been doing some more reading and I have upgraded to PHP 5.4 Also, I should say that I am currently using version 2.3.0

EDIT: And here is my tracking code:

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://easypeasypcs.co.uk/piwik/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
    g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
<noscript><p><img src="http://easypeasypcs.co.uk/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->


Hello all,

It’s been 24 hours, so I thought a little bump. Oddly enough it registered one vistor today but I know there have been more as I have visited without the Piwik cookie that ignores my visits.

Any ideas would be great, please.


(Matthieu Aubry) #3

Can you please check in your server error log files, if there is an error?


Hello Matt,

Thanks for trying to help. As I said before, there is nothing in the server error logs to suggest a problem with Piwik. When I looked on the first post here, there were what looked like few 404’s but that was it. I have just re-checked and the error log is empty.

Although my installation was up-to-date via the ‘automatic’ updater, I updated manually the other day but that hasn’t seemed to have helped. Thought I would try just in case.


EDIT: I have just checked again and I have this:

Last 300 Error Log messages in reverse order:
[Mon Jun 09 03:53:31 2014] [error] [client] File does not exist: /home3/nickd/public_html/images/fblogo.png, referer: https://mail.google.com//scs/mail-static//js/k=gmail.main.en_GB.mvBhnRXzsE0.O/m=m_i,t,it/am=fEYcTv69v1Cc4S76pNp__3t3SfGzv5f77k0AQtgJlP_N_h9wNagPyo8N/rt=h/d=1/rs=AItRSTNmwQIusY-btXDD_VegRdlZCw_Vcg

…but that looks like an image that can’t be found.

(Matthieu Aubry) #5

Hi NIck, there is a JavaScript error on your website:

SyntaxError: unterminated string literal
intro: '<p>Some of these cookies are essential to make our site wor

I think this error is causing Piwik tracking to fail.


Hello Matt,

Many thanks for your reply.

I have been testing things by removing scripts (there are around 3 on my site), but no joy. I decided to add a very simple web page - just to rule out things like JavaScript, so I uploaded this: http://www.easypeasypcs.co.uk/test1.html

When I visit the page, it doesn’t get tracked in Piwik.


(Matthieu Aubry) #7

I’m seeing ERROR 403 for the piwik.php request: Piwik › Error

Please ask your webhost why (it may be because of mod_security rules)



Thank you so much - that did it and all seems good now.

I can’t really thank you enough for all the work that you put into this project and the way you donate your time to answering questions from and helping people like me.

Thanks again for all of your patience and hard work.

P.S. Any way that I can mark this as solved? Maybe this will help others.

(Matthieu Aubry) #9

You’re very welcome!

PS: to mark as solved you can update your post title and add [Solved]


Great, that’s nice and easy and I will do that right now :wink:

EDIT: Ha ha, sorry - this will make you laugh; how on earth do you edit the title?

(Matthieu Aubry) #11

in the bottom of your first post, there should be an “edit” button. can you see it? if not, maybe there’s a bug in the forum theme :wink:


Ah, thank you, Matt. I had been looking through the Control Center!

All the best,