Adsense Ad Code Manual Placement
-
I have implemented Transitional AMP on my website and I am using the provided Astra Theme. So far it works great. The only thing that bothers me is I don’t want to use the AMP Auto Ads plug-in. There is an option from Adsense to manually place the ad code (script on header & ad code on body).
I was able to add the Adsense AMP script on header.php of the theme and inserted the AMP ad code on the body using shortcode. The thing is, I now have two ad codes (non-amp and amp versions) on the same spot. Will this slow down my website? Technically, there are two Adsense script and two ad code on non-AMP site.
Is there a way to manually place the AMP Adsense code on the theme without affecting the non-AMP version of the site?
Thanks a lot.
- The topic ‘Adsense Ad Code Manual Placement’ is closed to new replies.