How to add google adsense code in angular 9 application?

14 views
Skip to first unread message

Raj Malhotra

unread,
Nov 5, 2021, 11:04:27 AM11/5/21
to Angular and AngularJS discussion
I have added Google Adsense to my angular site. It shows ads on some pages and doesn't on some pages. I will show the example of pages which doesn't shows ads, suppose we go to this page "https://www.indiantrain.in/train-time-table", in the search box we have filled the train number and hit get schedule button. It will redirect to other page. Almost all the features of my site is in this manner only. 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.
Reply all
Reply to author
Forward
0 new messages