Does Analytics Code Placement Matter?
by Pete Prestipino
Posted on 05.19.2008
- email
- facebook
- share this
share this
advertisement
Those involved directly with analytics always have the same conversation - "Where should the analytics code be placed?" Eric Enge of Stone Temple Consulting are in pursuit of a formal answer and have tested the placement of the same analytics code within the top and bottom of a web page. Check out the detailed post on testing analytics code placement here.
Enge and his team are suggesting that if page load time is fast (total page load time of under 3 or 4 seconds), then javascript code should be kept at the bottom. This will remove any risk related to analytics vendor downtime. According to the post, "The small loss of data you see in this scenario should not be a significant factor in the value of your analytics data."
If your page load time is a bit slower however (4 seconds or more), consider placing your analytics Javascript at the top of your web page. "Your data loss will be larger, and also the nature of the lost data may start to differ."
Good advice!
Discover the Tactics and Techniques of the Top Digital Enterprises
today in Website Magazine's Special Spring Issue - Web 100.
Become a Member
Not already a part of our community? Sign up to participate in the discussion. It’s free and quick.
Sign Up