Preamble
I noticed when I started using Cloudflare I was not getting any hits in piwik.
Actually it was a bit strange…
Solution
To fix the issue I made the dns at Cloudflare look like
Investigation
I strongly suspected that it was a caching issue as that is what CDN does.
I tried turning off caching on Cloudflare, but this didn’t fix the issue.
The solution appears to be to separate your web ip, from you piwik ip in the dns.
Initially I had
Hence they share the same root website, and I suspect my tracking java code was being redirected to the wrong ip.
I then changed my sites to
This still didn’t fix it as my dns looked something like this
I suspect Cloudfare just breaks the alias at brombo.co.uk hence piwik.brombo.co.uk still didn’t work.
To fix the issue I made the dns at Cloudflare look like
Now I see to be able to generate hits using
https://www.geoscreenshot.com/capture
ToDo
I have tried using the piwik app on Cloudflare but this currently doesn’t appear to generate any hits for me. Also the ip addresses I am currently receiving I believe are actually Cloudflare ones… I need to add the mod to the synology to fix this.