Title: Google Analytics
Last modified: August 31, 2016

---

# Google Analytics

 *  [mdepablo](https://wordpress.org/support/users/mdepablo/)
 * (@mdepablo)
 * [10 years ago](https://wordpress.org/support/topic/google-analytics-147/)
 * Hi
    I’m very confused as to how to install google analytics in WP. I got the 
   code, but don’t know where to paste it. Installed the ‘Insert Headers and Footers’
   plugin. Plugin description says to paste it under the plugin settings, but doesn’t
   say exactly where (there is a header option, and a footer option in the settings
   window). WPBegginers says to paste the code in the headers.php file just above
   the body tag. I check the php file, but just above the body tag there is a section
   which falls below the closing head tag, so not sure about this. Also, some other
   threads say to not insert it in the theme files as it’s better to have this theme-
   independent in case you switch theme in the future, so the plugin path is better.
   Please help, novice here. Thanks/regards

The topic ‘Google Analytics’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [mdepablo](https://wordpress.org/support/users/mdepablo/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/google-analytics-147/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
