How to add Piwik tracking code to the store pages
page last edited on 28 September 2017
Piwik is a powerful web analytics tool. If you wish to use Piwik to track your X-Cart store, you will need to add Piwik tracking code to your store pages.
The following example demonstrates adding Piwik tracking code to the file
/skins/customer/body.twig with Template editor (available via the module Theme Tweaker):
Note how the code is added before the </head> tag.
Important: Like any integration requiring you to add a tracking code snippet to your X-Cart store pages, Piwik can be added to your store site using Google Tag Manager. For information on using Google Tag Manager with X-Cart, see the section How to add Google Tag Manager code snippets to the store pages of this manual.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.