As long as you post the code as it appears on Google, tracking will fire.
The higher you have the code on the page, the better your statistics will be.
For example, if you have a user with a slow Internet connection (I think a smartphone with a bad signal), and your page takes 3 seconds to load. If you have the tracking code above on the page, the code will fire earlier and will begin to track the user's time on the site, including the bulk of the download time.
Say in the above example that the GA code is the latest tag on the site, and after 2 seconds the user sees the link they are looking for, and clicks that link before the page is fully loaded. In this case, the GA code will never work from the bottom of the page, and you missed the analytics on hit / visit / visitor, which really went to your site.
Having a GA code in the header or at the top of your code does NOT need to slow down loading time. You can invoke GA code asynchronously so that it does not slow down the rest of the load (documented here: https://developers.google.com/analytics/devguides/collection/gajs/ ).
source share