# Where to insert Adsense Code in Amp.hbs

**URL:** <https://forum.ghost.org/t/where-to-insert-adsense-code-in-amp-hbs/17638>\
**Category:** Developer help\
**Created:** [October 12, 2020, 7:58pm UTC](https://forum.ghost.org/t/where-to-insert-adsense-code-in-amp-hbs/17638 "2020-10-12T19:58:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kesen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kesen/32/9937_2.png) [@kesen](https://forum.ghost.org/u/kesen)\
**Post date:** [October 12, 2020, 7:58pm UTC](https://forum.ghost.org/t/where-to-insert-adsense-code-in-amp-hbs/17638/1 "2020-10-12T19:58:42Z")

</div>

**What’s your URL**? [https://www.kesen.wang/](https://www.kesen.wang/)  
**What version of Ghost are you using?** \* **Version** 3.35.5  
**Environment** Production  
**Mail** SMTP

**How was Ghost installed and configured?** Ghost Pro Subscription  
**What Node version, database, OS & browser are you using?** Safari, Database: MySQL, using Mac OSX  
**What errors or information do you see in the console?** None  
**What steps could someone else take to reproduce the issue you’re having?**  
Hi there, I just have a quick question relating to inputting the Adsense script inside the amp.hbs file as it needs to be inserted on Amp pages only. Google gives me the following code:

**Place this code once in between the head tags of your AMP site’s HTML. This script loads the relevant amp-auto-ads libraries.**

`<script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"> </script>`

**Copy and paste this code immediately after the tag of the pages where you want ads to appear. The placement of the code doesn’t reflect the position of the ad.**

`<amp-auto-ads type="adsense" data-ad-client="ca-pub-4639928629281949"> </amp-auto-ads>`

I was wondering how I can insert this into the default amp.hbs file in the theme. I don’t have a lot of coding experience so I’m not sure exactly where to put it, any help would be appreciated.
