Title: Tracking Code In Footer
Last modified: February 27, 2019

---

# Tracking Code In Footer

 *  Resolved Anonymous User 14978628
 * (@anonymized-14978628)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/)
 * Hi, is it ok to put the tracking code in the footer as Google recommends putting
   it in the header? Thanks

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/#post-11255020)
 * In short: Yes, it’s okay. But would I recommend it? No.
 * Google recommends putting it in the header, because then it’s loaded first, so
   you can immediately start tracking your visitor. However, Google Pagespeed recommends
   putting javascript in the footer, since it is render-blocking thus lowering performance
   and user experience.
 * So it’s your choice: do you mind that you start tracking your visitor a few 100
   milliseconds after they arrived at your site? Or is it the first thing you want
   your site to start doing before rendering the contents?
 *  Thread Starter Anonymous User 14978628
 * (@anonymized-14978628)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/#post-11255093)
 * You say you don’t recommend putting in footer. Is there any reason for this besides
   the delay in tracking the visitor?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/#post-11255098)
 * Nope. That’s it!
 *  Thread Starter Anonymous User 14978628
 * (@anonymized-14978628)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/#post-11255324)
 * thanks

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

The topic ‘Tracking Code In Footer’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: Anonymous User 14978628
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/tracking-code-in-footer/#post-11255324)
 * Status: resolved