Title: Google analytics &#8211; where do I put the code?
Last modified: August 19, 2016

---

# Google analytics – where do I put the code?

 *  [birdfan](https://wordpress.org/support/users/birdfan/)
 * (@birdfan)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-where-do-i-put-the-code-1/)
 * Do I put it in the main index template? If so, Where?

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

 *  [kaethy](https://wordpress.org/support/users/kaethy/)
 * (@kaethy)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-where-do-i-put-the-code-1/#post-796505)
 * I put mine in the footer.php file
 *  [flammobammo](https://wordpress.org/support/users/flammobammo/)
 * (@flammobammo)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-where-do-i-put-the-code-1/#post-796506)
 * Alternatively you can try using [this plugin](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)
   which will allow you to switch themes and not have to worry about continually
   adding it to each theme. Check it out.

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

The topic ‘Google analytics – where do I put the code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [flammobammo](https://wordpress.org/support/users/flammobammo/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-where-do-i-put-the-code-1/#post-796506)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
