matomo-php-tracker icon indicating copy to clipboard operation
matomo-php-tracker copied to clipboard

How can I used this with cloudflare?

Open haydenjames opened this issue 2 years ago • 4 comments

Currently, it's caching the code and not counting traffic. Is anyone else using this successfully with Cloudflare?

haydenjames avatar Sep 20 '23 14:09 haydenjames

@haydenjames Are you taking of the PHP Tracker package for Matomo, or Matomo in general? For cloudflare in general this FAQ might help you: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-cloudflare-setup/

sgiehl avatar Sep 20 '23 15:09 sgiehl

Hi @sgiehl Thanks for the help sir.

That link you shared uses Cloudflare apps and installs even more js scripts than just pasting the default js tracking code.

I wanted to use server-side tracking to avoid js altogether.

I tried to get insight on Matomo but no luck thus far: https://forum.matomo.org/t/matomo-server-side-tracking-with-cloudflare/53208

thanks.

haydenjames avatar Sep 21 '23 15:09 haydenjames

I don't think it's possible to use server side tracking as long as you use cloudflare for caching. If you have access logs you could try to import them using log analytics

sgiehl avatar Sep 22 '23 07:09 sgiehl