Jump to content
View in the app

A better way to browse. Learn more.

Learn more

Adsense code for body

Featured Replies

Hi,

Where should the following <head> and <body> codes for adsense be placed in IC5? I read a post that the adsense head code should be placed in the Analytics Integration. Can I put both the head and body codes into the Google Analytics Integration tracking code field? If not where should the body code go?

<head></head>:

<script async custom-element="amp-auto-ads"

src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">

</script>

<body></body>:

<amp-auto-ads type="adsense"

data-ad-client="ca-pub-xxxxxxxxxxxxxxxx">

</amp-auto-ads>

Solved by Day.

I don't know that you want to run Ad Sense auto ads on IPS.

  • Solution
16 hours ago, CrashPush said:

Hi,

Where should the following <head> and <body> codes for adsense be placed in IC5? I read a post that the adsense head code should be placed in the Analytics Integration. Can I put both the head and body codes into the Google Analytics Integration tracking code field? If not where should the body code go?

<head></head>:

<script async custom-element="amp-auto-ads"

src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">

</script>

<body></body>:

<amp-auto-ads type="adsense"

data-ad-client="ca-pub-xxxxxxxxxxxxxxxx">

</amp-auto-ads>

AdminCP > Themes > Theme Designer Templates (Arrow drop down) > Create New Template

Type: Hook

Hook Application: System

System: front/global/globalTemplate

Hook Target: Head

Hook Type: Before the closing tag

Content: Paste your Adsense code

Click Save and you're done.

Recently Browsing 0

  • No registered users viewing this page.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.