This seems like a simple question but it’s turning out not to be. Our tag management provider would like us to put their javascript snippet “just under the opening body tag”. They don’t want it in the footer and they don’t want it in the header (the two places I can reasonably put it myself from within the admin/configuration panel).
We are using the Magento Enterprise template and when I look at design/frontend/enterprise/template/page/html, I see footer.phtml and header.phtml and rss.phtml.
Magento has two predefined insertion blocks for this. after_body_start and before_body_end are their names and the referenced post link describes how to add the block and then reference it in the layout so it gets called at the proper time. Use after_body_start
The advantage of using the layout method is that you can have strict control and keep the javascript out of the cart where it may conflict severely with operations and prevent cart function.