We couldn't find the code on your site

I have applied Adsense for my discourse site.
I pasted the Adsense code in </head> section.
Google responses with

Error logs shows


It’s because you’re trying to run in-line JavaScript, which can cause some problems. This is why Discourse has removed it. For more information, go here:


Thank you @Chaboi_3000

Oh, and @Viki, you can use this plugin in your site for AdSense. I think this should help with your In-line JS problem:

I am using discourse-adplugin
I disabled CSP & CSPR reports.

Never mind. I’m sorry. I messed that up. :worried: You just have to go to https://example-forum.com/admin/site_settings/category/adsense_plugin and fill in the details and follow the steps here:

No problem @Chaboi_3000 :slightly_smiling_face:
I think we have to fill the details after we get Adsense approval from Google.

You might want to contact Google about that. :slight_smile: