/ Website Development

Add Google Adsense to Ghost Blog

Adding google adsense to your ghost hosted blog is needed a little customization. Though, you can add the code using code injection in ghost dashboard, and you can place it at header or footer. But i need more freedom to where i want to place my ads.

Here is what you need to do to enable adsense at your blog:

  1. Get your adsense code
    Go to adsense.google.com. Sign up and create responsive ad unit, with code type asynchronous

  2. You need to edit post.hbs
    I use Casper theme with my blog. Go to /your/site/folder/content/themes/casper/post.hbs
    I place the code under the title, as shown below:


  1. Restart your ghost blog
    Then, restart your ghost blog

Then, it's done