adding customed javascript analytics code to magen

2019-07-31 08:18发布

问题:

i have created customized analytic code for my clients. It tracks visits and conversions. One is to be placed on the "thank you" page and one on all other pages. What is the quickest way to get my magento guys to paste the codes? Is there a header file and "thank you" page in magento for the codes. Do I write an extension for that? Any help will do. Thanks

回答1:

You can add a global code to

/app/design/frontend/[your-interface]/[your-theme]/template/page/html/header.phtml

or

/app/design/frontend/[your-interface]/[your-theme]/template/page/html/footer.phtml

and the thank you page code can be placed at

/app/design/frontend/[your-interface]/[your-theme]/template/checkout/success.phtml


标签: magento