Piwik does not seem to be tracking

HI there

I am having a problem with tracking in Piwik. It is has installed fine, but doen’t seem to be tracking any visits. Ordinarily we get roughly 150-200 visits per day so far on one has been tracked.

I have checked our rank for our main keywords and this hasn’t changed.

I can’t seem to even get it to track my visits which it was originally (until I blocked the IP - I have since unblocked it to see if I can get it to track.)

I have checked all the FAQs and tried various different suggestions, but nothing seems to be working.

Any help would be very much appreciated.

Thanks

Clojo

Is anyone able to help with this? Thank you

Hi,

did you tried everything that was suggested in Troubleshooting - Analytics Platform - Matomo ?

Hi there.

I have now gone through all the things on that list however it still isn’t working.

The strange thing is that it has recorded 1 visit from a search engine when I initially installed and then a visit from me directly. But since then nothing. I know people are on the site as I am also tracking with Mint. Which is working.

I installed this today because Piwik was not working and needed to track the visitors, but I would rather use Piwik.

Look forward to your response.

Kind regards

Chloe

what’s your site?

www.doihaveacase.co.uk

your JS code says


var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.doihaveacase.co.uk/piwik/piwik" : "http://www.doihaveacase.co.uk/piwik/piwik");

replace with:


var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.doihaveacase.co.uk/piwik/piwik/" : "http://www.doihaveacase.co.uk/piwik/piwik/");

Those lines of code look exactly the same. Is it just me?

I will change and see if it makes any difference.

OK. I think I have got it, but just need to wait and see if it works.

I will keep you posted.

Thank you.

Hi Matt

I have changed the code and it is still not tracking. I have tried to access from here both via a search and directly, but nothing recorded. Both these visits recorded on Mint.

Any other ideas?

Look forward to hearing from you.

Chloe

The JS code is wrong in the site ! make sure it’s correct (the difference was to add the / at the end of the URLs in your first JS code)

I guess It should be


<!-- Piwik --> 
<script type="text/javascript">
   var pkBaseURL = (("https:" == document.location.protocol) ? "[www.doihaveacase.co.uk/piwik/piwik/]; : "[www.doihaveacase.co.uk/piwik/piwik/];);
   document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
   try {
       var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
      piwikTracker.setRequestMethod('POST');
      piwikTracker.trackPageView();
      piwikTracker.enableLinkTracking();
   } catch( err ) {}
</script>
<noscript>
   <p><img src="http://www.doihaveacase.co.uk/piwik/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p>
</noscript>
<!-- End Piwik Tracking Code -->

Hi tcrxt

Thanks for all the help.

I have now changed the code on the site to the above and it is still not tracking. I am really sorry about this.

Is there anything else I can do. I would really like to be able to us Piwik.

Many thanks in advance.

Kind regards

Chloe

This is the correct code: <script type="text/javascript"> var pkBaseURL = (("https:" == document.locat - Pastebin.com

this one should work all previous ones were not copied properly in the forum

This now seems to be working! Thank you very much!

It is not quite tallying with the data that I am getting with Mint, but I will monitor this and if there are any further problems I will post again.

Many thanks again.

Kind regards

Chloe

Don’t forget to take a look at New to Piwik - Analytics Platform - Matomo

Since yesterday, I have the same problem, Piwik has stopped tracking my website, even when I go in the website, Piwik doesn’t track my visit. My Website is http://aviactu.info it use Drupal and I use a module to integrate the Piwik code in the website.

Why did you rename pkBaseURL into _paq ? Is it in the drupal plugin?

Two remarks:

(Bienvenu ! :wink: )

The problem is that with the same code, it was working before yesterday. I’ve checked my webserver log and I didn’t found any error related to piwik.

So it’s not the same problem: you should open a new topic and re-explain your problem.

Check Troubleshooting - Analytics Platform - Matomo again: what version do you use, do you track several websites, etc.

Bie,
tcrxt.