Code Monkey home page Code Monkey logo

Comments (4)

Daandelange avatar Daandelange commented on August 20, 2024

Hi, I have never worked with cloudflare cache, but good catch !

Why JS ? Isn't the pixel tracking OK ?
What exactly would you need on the simplestats side ? A JS asset to load with a function to call from your <body>, like G.Analytics or Matomo ?
What is a punch-trough ?

from kirby3-simplestats.

miragecraft avatar miragecraft commented on August 20, 2024

By “punch-through” I simply mean get past caching without being affected.

Would tracking pixels have fixed src URLs (esp. the query string) or would it change for each visitor/visit?

Since the src URL is stored on the page, caching would effectively force the same pixel to be served to everyone visiting the page, is that going to be a problem?

If the src URL is fixed then I could set up rule(s) for Cloudflare to not cache the pixel image, and JavaScript would indeed not be needed.

Otherwise JavaScript would be needed to generate the necessary URL/query string.

Isn't the pixel tracking OK ?

Does SimpleStats currently use tracking pixel? I wasn’t aware that it is.

from kirby3-simplestats.

Daandelange avatar Daandelange commented on August 20, 2024

Yes, the pixel is implemented and they have a per-page URL, the image never changes but the HTTP response is set not to be cached. We don't need JS execution for retrieving more data. (But now that I think of it, I don't know if referrer tracking works correctly like that!) Alternatively, js tracking could become a new tracking method / feature.
Refer to Setup/Integrating to your page in the readme to enable pixel tracking. (look at the tracking method)

from kirby3-simplestats.

miragecraft avatar miragecraft commented on August 20, 2024

Got it, I’ll check it out.

from kirby3-simplestats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.