I would suggest placing all tracking code just before the closing body tag, ideally at landing page template level.
Marketo and Google Analytics are classical examples.
That would ensure the browser renders the page quickly and, if a JavaScript occurs, it does not cause any adverse effect on the content.