UBB.Dev
Posted By: Aaron101 Google Adsense - 04/05/2022 8:58 AM
Where would I put the Google Adsense code?
Posted By: Gizmo Re: Google Adsense - 04/05/2022 7:35 PM
The only areas you can enter 3rd party code is:
- Header Include (inserts code above the navigation bar)
- Footer Include (inserts code below the footer)
- Sidebars
- Custom Island Insert

The includes can be found in the Control Panel at Display -> General -> HTML Includes

The Ad Insert and Sidebar islands utilize the Custom Islands in the Control Panel Portal & Islands -> Custom Islands. Sidebar islands are defined via Portal & Islands -> Column Layout

The Custom Island Insert is the box you see between the original post in a thread (or the first post of adjoining pages) and the second post, this is set in each forum's details page at Content -> Forums -> Details under "Custom Inserts"
Posted By: Aaron101 Re: Google Adsense - 04/05/2022 11:11 PM
Thanks!

Okay, so the Google Adsense code cannot be added for the whole forum? Would that go in the header include?
Posted By: isaac Re: Google Adsense - 04/06/2022 12:18 AM
Originally Posted by Aaron101
Okay, so the Google Adsense code cannot be added for the whole forum? Would that go in the header include?

The items listed by Gizmo generally cover your whole forum:
- Header Include (inserts code above the navigation bar)
- Footer Include (inserts code below the footer)
- Sidebars
- Custom Island Insert

You can also use a unique Header/Footer for each forum. This is setup in the "Custom Inserts" tab per forum.

While there, the Custom Island Inserts can be used. These will show up between the 1st and 2nd post of a topic. Usually the most effective place to put ads.

As for Google Adsense, you can insert just a single piece of code from google in to your Header Inserts, which will allow Google to place their ads around your pages wherever they feel is best. I am currently using this, and it seems to work out really well for me on the sites where I use it.

Additional reading on Google Auto Ads here
https://support.google.com/adsense/answer/9261805?hl=en#auto_ads
Posted By: Aaron101 Re: Google Adsense - 04/06/2022 1:35 AM
Okay, and by header inserts do you mean the custom header for each forum or the Header Includes section?

Sorry, slowly grasping all this!:)
Posted By: isaac Re: Google Adsense - 04/06/2022 1:49 AM
Originally Posted by isaac
As for Google Adsense, you can insert just a single piece of code from google in to your Header Inserts, which will allow Google to place their ads around your pages wherever they feel is best. I am currently using this, and it seems to work out really well for me on the sites where I use it.

Originally Posted by Aaron101
Okay, and by header inserts do you mean the custom header for each forum or the Header Includes section?

The "Header Insert For All Pages" section

For example, this is how you would add google ads tracking code to all pages:

[Linked Image]
note: use your own code where I have inserted XXX at

Attached picture 20220405_18-48-39.PNG
Posted By: isaac Re: Google Adsense - 04/06/2022 2:00 AM
The above post is where you would put the modern Google Auto Ads code.
Here is a temple for if f you wanted to manually set Google Ads sizes/types.

It also gives more assistance on where you could put other types of information if youre using it

[Linked Image]

Attached picture 20151119 - HTML Includes - Example.png
Posted By: Aaron101 Re: Google Adsense - 04/06/2022 2:03 AM
That’s super helpful! Thanks!
© UBB.Developers