• Resolved the5krunner

    (@the5krunner)


    AdSense will work on wordpress+litespeed if it is correctly linked with Google Sitekit plugin (after april 2021). that is the easiest route for anyone else reading this.

    however, i have a need to manually & programmatically insert the Adsense line of code by another means

    i insert this line: //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
    but it is always cached in the cdn (I have keycdn’s cdn mapped to cdn.the5krunner.com).
    when it is inserted into the cdn the URL is prefixed with the CDN path and, apparently, this causes adsense to stop working

    I have tried several litespeed exclusions for example “tuning>JS Excludes” where i have tied to exclude various combinations none of which works after a full cache refresh, i tried:
    //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
    adsbygoogle.js
    //pagead2.googlesyndication.com/pagead/js/

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter the5krunner

    (@the5krunner)

    i think i solved it

    in this litespeed setting
    “6 localisation>Localization Files”
    remove all references to google ads.

    i yes, i have the same problem with localization. when try to host local google analytics, it seem lscwp can’t local google analytics!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Litespeed does not exclude AdSense adsbygoogle.js’ is closed to new replies.