I have a recently found a couple of tags that recommend install the code directly beneath the opening tag. This is the recommended install location for LiveEngage Tag and Google Tagmanager.
You can add code easily before the closing tag under General > Design > Footer > Miscellaneous HTML
How can we achieve the same functionality immediately after the opening tag?
Best Answer
I would recommend the following approach for adding third party scripts in Magento:
1) Open your theme layout update file(preferably local.xml)
2) Add the following xml code:
3) Now you can add the relevant scripts to the the files
page/html/scripts/after_body_start.phtml
or
page/html/scripts/before_body_end.phtml