Title: Google analytics tracking code
Last modified: August 19, 2016

---

# Google analytics tracking code

 *  Resolved [johnnydesmd](https://wordpress.org/support/users/johnnydesmd/)
 * (@johnnydesmd)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-1/)
 * I am trying to get google analytics to run on wordpress for my website [http://www.jwflyfishing.com](http://www.jwflyfishing.com).
   The instructions tell me to Copy the following code, then paste it onto every
   page you want to track immediately before the closing </head> tag. I only have
   two pages in the page edit screen and that is a photo page and about us page.
   Where do I insert the script for the home page and all others? All help is greatly
   appreciated.
    JW

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-1/#post-1748365)
 * It goes in your theme….. using the theme editor
 * I usually put it in footer.php, right before the closing `<body>` tag
 *  Thread Starter [johnnydesmd](https://wordpress.org/support/users/johnnydesmd/)
 * (@johnnydesmd)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-1/#post-1748372)
 * thanks a bunch, I think that did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Google analytics tracking code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [johnnydesmd](https://wordpress.org/support/users/johnnydesmd/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-1/#post-1748372)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
