On a typical web site, tracking code is added to the index.html page. However, WordPress is structured differently. Here is one way to add tracking codes to your WordPress blog.
- FTP (I prefer FileZilla) to your hosting account.
- Download the header.php file.
- Navigate to the file location: Your path may look like this /public_html/wp-content/themes/<your theme’s name>/
- Find the </head> tag and paste your code above it. See the specific instructions for your code.
Tracking codes you might be using:
- Google Analytics – Analytics
- Crazy Egg – Heat Map
- Hit Tail – Long Tail Key Words
What tracking codes are you using?
This 3 year old post helped me out. I was trying to put the code in footer.php but Crazy Egg would not find it. Thanks 🙂
I am so grateful that you found the answer you needed and the content here has some staying power.