Adding Google Adsense to your Ghost self 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:
- Get your Adsense code. Go to adsense.google.com. Sign up and create responsive ad unit, with code type asynchronous
- 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:
- Restart your ghost blog Then, restart your ghost blog
$ /your/site/root/ghost restart
Then, it's done