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

---

# Google analytics tracking code

 *  [hbee](https://wordpress.org/support/users/heatherbodlak/)
 * (@heatherbodlak)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-6/)
 * Hi,
 * Where do you recommend I paste the Google Analytics tracking code? In header.
   php? Thanks!
    Heather

Viewing 1 replies (of 1 total)

 *  [AKINAKTANSEL](https://wordpress.org/support/users/akinaktansel/)
 * (@akinaktansel)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-6/#post-6811355)
 * There is a plugin for placing script to the header or footer of your wordpress
   theme:
 * [https://wordpress.org/plugins/header-footer/](https://wordpress.org/plugins/header-footer/)
 * this is healthier since playing with the core code is not a good practice. and
   of course analytics code goes into the header.
 * I hope it helps.

Viewing 1 replies (of 1 total)

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/swell-lite/1.8.1/screenshot.png)
 * Swell Lite
 * [Support Threads](https://wordpress.org/support/theme/swell-lite/)
 * [Active Topics](https://wordpress.org/support/theme/swell-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/swell-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/swell-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [AKINAKTANSEL](https://wordpress.org/support/users/akinaktansel/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-6/#post-6811355)
 * Status: not resolved