With this simple template modification you can easily add your Matomo (formerly Piwik) tracking code in a template. You can do it all by yourself by directly editing the template or install this simple template modification.
Set all your Matomo analytics settings in Matomo control panel and...
Order & Items tracking
Discounts tracking (order level)
Tax tracking (optional)
User ID tracking
What is Piwik?
Piwik is is a web analytics tool like Google Analytics. However, compared to GA it is open source and cannot only be used as a hosted solution...