If your tracking tools are google tools, there are already a few full-featured addons that will take care of sending analytics data by installing them to your store.
If you're building your own, you can use the variables available in tpl_checkout_success as posted here: http://www.zen-cart.com/forum/showthread.php?t=131900




