Yyou can just use the module from here:
http://kb.x-cart.com/display/XDD/Step+4+-+working+with+settings#Step4-workingwithsettings-Moduleexample
Download it, install on your X-Cart and put the tracking code to the textarea option of this module.
This is the simplest solution.
Tony.