How to add a tracking code to your WordPress blog

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.

  1. FTP (I prefer FileZilla) to your hosting account.
  2. Download the header.php file.
  3. Navigate to the file location: Your path may look like this /public_html/wp-content/themes/<your theme’s name>/
  4. Find the </head> tag and paste your code above it. See the specific instructions for your code.

Tracking codes you might be using:

What tracking codes are you using?

2 Responses to “How to add a tracking code to your WordPress blog”

  1. Clint Maher Says:

    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 :-)

  2. Jim Spencer Says:

    I am so grateful that you found the answer you needed and the content here has some staying power.

Leave a Reply

Home | Resources | About JBS Partners | Contact us