Code Injection

Ghost allows you to inject code into the top and bottom of your template files without editing them. This allows for quick modifications to insert useful things like tracking codes and meta data. The guide below outlines how to use this built in feature.

Log in and access your blog settings

To use the code injection feature on your Ghost blog, first login to your blog and access your Code Injection settings via the menu on the left.

Add custom code and save your changes

Place any custom code where you’d like it to load within your theme. When you’ve finished, click the blue Save button in the top right corner.