Recently had a client with a WordPress website in need of injecting a JavaScript tracking code into the Header. This would allow the injected JavaScript tracking code to appear within the header <head> of every page on their website. Newer WordPress themes usually provide an option to inject code into the either the header, body or footer areas but the client had a custom WordPress theme with no such feature or ability.
In this article I will show you how to quickly and easily add a script, JavaScript or any other custom code into the Header area of your WordPress website with or without a WordPress plugin.