Add Google Adsense Block

In this article, we are going to guide you how to add a Google Adsense blocks onto MetaFox site.

Firstly, you will need a Google Adsense account. Refer to this article for more details.

Log into your MetaFox site with the Admin user. On the Frontend, let’s .

Choose the Edit Site Content option if you want to add Google Adsense block into all pages. Or choose the Edit Page Content option if you want to add into the current page.

In the Page Layout, click the Plus  icon to add the block in certain section you want.

Screenshot 2024-03-29 at 10.08.16.png

Then search for the Google Adsense block as below

Screenshot 2024-03-29 at 09.57.56.png

Add the Google Adsense snippet code into the Ins element textbox. Note that the snippet code includes 2 different sections for the header and the body. You will put the code section for the body here. For the code section of the header, you can refer to the  article.

Then click Save Changes button.

Screenshot 2024-03-29 at 10.05.20.png

Now, the Google Adsense block has been added. You can publish the layout and .

Screenshot 2024-03-29 at 10.11.31.png

Congratulation. You can add the Google Adsense block into the MetaFox site