Litespeed does not exclude AdSense adsbygoogle.js
-
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 workingI 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]
- The topic ‘Litespeed does not exclude AdSense adsbygoogle.js’ is closed to new replies.