Ghost blogging system is very new and highly under development. It does not support plugins yet but will soon support in future versions. Untill then, if we want to add Google Analytics to our blog, we have to add the tracking code manually to its theme files.

  • To add analytics to your blog, first signup at
  • After signing up, you will have to add and verify that you own the site.
  • After verification, you will be provided with a javascript code snippet like this:
		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	ga('create', 'UA-123456789-1', '');
	ga('send', 'pageview');
  • Copy the code snippet.

  • Browse to the theme directory you are using in your ghost installation folder. Assuming the directory id ghostblog/content/themes/casper.
  • In this directory, there will be a file named default.hbs.
  • Open the file and paste the code just above the ending </body> tag.
  • This will make sure that analytics is available in each and every page of your blog.
  • Save the file and push the changes to your web host.
  • Analytics is now added and now you can visit google analytics and track your website visitors.