https://www.onlinesupportweb.com/ind...articl eid=59
Can I Add Tracking and Conversion Scripts?
Solution
3DCart allows you to add Custom scripts to your website; this could be Javascript functions to be used in the HTML, Tracking Scripts from third part services like Google Analytics or StatCounter, and Conversion Scripts from affiliate programs to track the sales.
All these scripts can be added directly to the HTML files via FTP or from the Store Manager.
Tracking Codes
Any code entered to the Global Header, Footer, Left Banner or Right Banner sections will be displayed on every page of your site. Some of these could be disabled in the website depending on your specific layout.
1. Login to your Store Manager
2. Select SETTINGS > DESIGN > HEADER AND FOOTER
3. Add the script to the Footer field with the WYSIWYG mode OFF (you cannot paste code when this is enabled). This can also be done using the Global Header, Left Banner or Right Banner.
4. Click SAVE CHANGES
Conversion Codes
These codes are used to report your conversion goals or sales to third party services like Affiliate Programs.
1. Login to your Store Manager
2. Select SETTINGS > DESIGN > TITLES AND CONTENT
3. Click on EDIT next to "Checkout #4"
4. Add the script to the Footer section.
5. If the code requires to pass the Invoice Number or the Order amount you can use the variables [invoicenum] for the Invoice number, [total] for the Order Total, or [osubtotal] for the Subtotal of the order (before shipping and taxes).
6. Click on SAVE CHANGES
When a script makes reference to a external site you want them to be secure; always check that they are https instead of http. These scripts also include links to the third party websites so it's better to place the scripts at the Footer instead of the Header.
You can also use .js files when adding custom javascript that you want to keep it behind the page, it's more organized and it makes the code reusable, you can just save the file on your templates folder and then call it from the html.