Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #85052
    Florian Krebber
    Guest

    Hello there,

    i am trying to achieve this for quite some time now but without any luck. W3 Total Cache is great and we would love to use it in production, but there is one major hassle for us: we use serverside tracking of basic visitor data. So whenever someone visits any page we add an action to a wordpress hook (wp_head in this instance) and write some data to the database.

    However (and of course) when we activate the page cache feature of W3 Total Cache the hook/function is never fired. I thought when using the PageCache Disk: Basic feature i could at last fire some hooks before the cached php script is send to the visitor. But whatever i try the hook never gets fired when the cached version is send to the browser.

    So, my question is: is there AN way to make basic serverside tracking working with W3 Total Cache PageCache feature?

    Thanks and take care
    Florian

    #85331
    Marko Vasiljevic
    Keymaster

    Hello Florian,

    Thank you for reaching out and I am happy to assist you with this.
    In W3 Total Cache Performance>Page Cache, there is a “Late initialization” setting. This is available with Disk: Basic or any memory-based caching.
    Have you tried enabling this and see if it helps!?
    Thanks!

    #85344
    Florian Krebber
    Guest

    Hey Marco,

    thanks for the hint, i will try this. But on which hook/action/whatever is W3 Total Cache in Disk: Basic mode decides if it has to deliver the cached php script or cache it or do whatever?

    And thus for: is there any action/hook reference ?

    Thanks and take care
    Florian

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Serverside Tracking with W3 Total Cache’ is closed to new replies.