Google Analytics Transaction Outside of </head>
===

Due to our shopping carts setup (OpenCart, using vqmod) we have to split the main GA code and the Transaction code into two different locations. Is there anything wrong with the following setup? Will it record a transaction?

There is no way to add the trans to the head in OpenCart without a bad hack, so as an alternative would you just move the whole GA code into the footer?

        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', '']);
            _gaq.push(['_trackPageview']);
            (function(){/* omitted for space */})();
        </script>
    </head>
    <body>
    
        <!-- /footer -->
        <script type="text/javascript">
            _gaq.push(['_addTrans',]);
            _gaq.push(['_addItem',]);
            _gaq.push(['_trackTrans']);
        </script>
    </body>