> ## Content Index
> Fetch the complete content index at: https://ghost.org/changelog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Code Injection
- URL: https://ghost.org/changelog/code-injection/
- Published: 2015-04-20T09:04:31.000Z
- Updated: 2021-01-11T01:40:03.000Z
- Author: John O'Nolan
- Tags: New, #changelog, #ghost

What do you do when you need to inject a small snippet into your Ghost blog, like an analytics tracking code or a simple meta tag?

**Before:** you had to laboriously edit your theme files in order to get those common snippets into your blog. Functional, but not very convenient.

**Now:** you can use the new code injection feature, which allows you to inject code snippets into the `{{ghost_head}}` and `{{ghost_foot}}` helpers of your theme, without ever needing to edit it. It also means you can change themes without losing these snippets!

It’s a small thing, but a very helpful one. We’ve been testing it inside [Ghost Labs](https://ghost.org/changelog/labs/) for a few months, and now it’s ready for prime-time!

Got ideas for more features that should be in Ghost? Don’t forget to vote on our [feature wishlist](https://forum.ghost.org/?ref=ghost.org).

**Ghost(Pro**) users already have access to this feature right now, there’s nothing you need to do! Users running Ghost on their own servers can grab this feature by upgrading to [Ghost 0.6](https://ghost.org/docs/install/?ref=ghost.org).