Matomo
Matomo is a web analytics platform that tracks website visitor activity and provides reports on website usage and behaviour.
Key features include:
- Website visitor tracking and analytics
- Page view and event tracking
- Referrer and traffic source reporting
- Goal and conversion tracking
- Self-hosted and cloud-hosted analytics options
Matomo integrates with ShopWired by adding a tracking to your website theme to record visitor activity across your website.
Account creation
Account creation
To use Matomo with ShopWired, create an account at the Matomo website.
Once your account is created and a website has been added in Matomo, a JavaScript tracking script will be generated for your website.
Theme installation
Theme installation
Matomo provides a JavaScript tracking script that must be added to your ShopWired website theme so that tracking loads on all pages.
An example of the Matomo JavaScript tracking script is shown below:
<script>
var _paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://example.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://cdn.matomo.cloud/example.matomo.cloud/matomo.js';
s.parentNode.insertBefore(g,s);
})();
</script>
The script shown above is provided as an example only. You must copy the exact script provided in your own account, as the script and any ID values will be unique to your website.
To add the tracking script to your ShopWired website:
- Navigate to Website > Themes
- Select the
code editoroption for the theme you want to edit - Open the
master.twigfile - Paste the Matomo tracking script just before the closing
</head>tag - Select
save changes
Recommendations
Recommendations
- Verify that tracking data appears in your Matomo account after installation.
- Ensure the tracking code is present only once in your theme.