A Step Guide to Add Google AMP Adsense Code in WordPress AMP Site

By | October 15, 2020

We can use wordpress AMP plugin to create amp pages for our sites. However, this plugin can not allow us to add google adsense amp code. In this tutorial, we will tell you how to do.

Preliminary

You should install wordpress amp plugin and activate it.

Open amp html-start.php

You can edit html-start.php using wordpress file manager plugin.

Edit wordpress amp html-start.php file

If you have enabled google amp advertisement in your google adsense account. You can past your amp advertisement codes in this page.

add google amp AdSense code in html head

There are two amp codes. One should be inserted in between <head> and </head>. The other should be inserted at the end of <body>.

Save start-html.php

Then you can find these amp codes in your amp site.

The effect of amp adsense code in html source

Leave a Reply