• Resolved stenspect

    (@stenspect)


    Hi LiteSpeed Cache Support Team,

    I hope this message finds you well. I am currently facing an issue with my Google Analytics tracking when using the LiteSpeed Cache Plugin, and I’m hoping you can assist.

    Problem Description:

    1. Paid Traffic Tracking: I am running paid traffic campaigns through sources like Taboola and Outbrain. Unfortunately, the traffic from these sources isn’t showing up in Google Analytics. When I tested on another site without any caching plugin, the tracking worked fine. However, with LiteSpeed Cache enabled, it seems Google Analytics doesn’t fire consistently—only sometimes.
    2. Ads Display and JS Execution: In addition to the tracking issue, it appears that my ads are not always being displayed to users. This irregularity in JS execution is affecting my ability to monetize the traffic, as the necessary scripts are not firing correctly.

    I would like to mention that I am unable to replicate this issue on my own, and the site appears to load correctly. This makes it even more challenging to diagnose the problem.

    Given these issues, I suspect the caching plugin may be interfering with the proper execution of Google Analytics and other JS scripts. Could you please advise if there are specific settings or configurations within LiteSpeed Cache that could resolve these problems? Any insights or troubleshooting steps you can provide would be greatly appreciated.

    Thank you for your assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try exclude the analytic and ads JS in Page Optm -> Tuning , there are 3 exclude fields , add them all

    Thread Starter stenspect

    (@stenspect)

    Thank you for the reply! What are the excludes for this?

    gtag
    gtm
    gtm.js
    dataLayer

    • This reply was modified 5 months ago by stenspect.
    Plugin Support qtwrk

    (@qtwrk)

    I’d suggest gtag and gtm

    Thread Starter stenspect

    (@stenspect)

    Thank you.

    What would “datalayer” and “gtm.js” do?

    Plugin Support qtwrk

    (@qtwrk)

    when exclude inline script , any word out of the whole inline javascript ought do it , so you don’t need to add them all , and actually gtag alone should be enough , but it doesn’t hurt to add them all though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.