How to add google adsense code in angular 9 application?

I have added Google Adsense to my angular site. It shows ads on some pages and doesn’t on some pages. [Redacted by moderator] I think angular block the Adsense script and that’s why it doesn’t load all the time. As we already know, outside script need to sanitize in order to run in angular. So, I just want to know the proper way to add Google Adsense to my site.

Hello! Welcome to the community :grin:!

Instead of providing a link to your website, please provide a sample solution (on, for instance) so people can check what you did and what could be the problem.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.