• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    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 DaanvandenBergh

    (@daanvandenbergh)

    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)

    You say you don’t recommend putting in footer. Is there any reason for this besides the delay in tracking the visitor?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Nope. That’s it!

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tracking Code In Footer’ is closed to new replies.