We couldn't find the code on your site

AI-generated summary

The discussion revolves around Viki having trouble implementing Adsense on their Discourse site due to an error. Chaboi_3000 suggests this is likely due to in-line JavaScript being blocked by Discourse for security reasons. Chaboi_3000 recommends using the Google Adsense plugin, which Viki is already using. Chaboi_3000 then realizes the issue and provides instructions on how to configure the plugin, but Viki notes that the details cannot be filled in until Google Adsense approval is received.

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

Error logs shows

image

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:
https://meta.discourse.org/t/google-adsense-plugin/11763

I am using discourse-adplugin
https://github.com/discourse/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:
https://github.com/discourse/discourse-adplugin#step-2b---input-your-details

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: