• Resolved 温唯

    (@unbosomjam)


    Hi ,
    I’ve used verified Adsense through Advanced Ads > Settings > AdSense , and pasted the activation key into AdSense account field , then created new ads to display auto ads only on specific pages and positions.
    Everything works great.

    But now , I’d like to enable Rocket Loader in Cloudflare to async script to fast up page loading.
    And I also want to exclude Adsense script from Rocket Loader by adding the data-cfasync=”false” attribute to Adsense script tag to avoid Adsense script being async.
    (which is found in cloudflare support)
    https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts-

    Because the Adsense script had been inserted by adding activation key into Advanced Ads.
    And I also want to display auto ads only on specific pages and positions through Advanced Ads.
    So, is there a way to add the data-cfasync=”false” attribute to Adsense script in Advanced Ads?

    Thank you so much.

Viewing 1 replies (of 1 total)
  • Plugin Support schmidt25

    (@schmidt25)

    Hi unbosomjam,

    Thanks for reaching out.

    You can insert the auto ads code only on specific pages when you inject it via placement. Please, take a look at this manual.

    If you inject the code as described there, you can also integrate your modification. I recommend contacting AdSense before using modified AdSense codes to ensure that this doesn’t violate their terms. I could not find a dedicated answer to this question in the help section of Google AdSense.

    Best regards,
    Joachim

Viewing 1 replies (of 1 total)
  • The topic ‘How to add attribute to Adsense script?’ is closed to new replies.