var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://onthemike.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.type='text/javascript'; g.async=true; g.src='//cdn.matomo.cloud/onthemike.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
If you want to do more than track page views, please check out the Matomo documentation at https://developer.matomo.org/guides/tracking-javascript-guide.
You can also generate a customized tracking code at https://onthemike.matomo.cloud/index.php?module=CoreAdminHome&action=trackingCodeGenerator&date=2021-04-13&period=day&idSite=1.
** Installation Guides
WordPress: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-wordpress/
Squarespace: https://matomo.org/faq/new-to-piwik/how-do-i-integrate-matomo-with-squarespace-website/
Wix: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-wix/
SharePoint: https://matomo.org/faq/how-to-install/faq_19424/
Joomla: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-analytics-tracking-code-on-joomla/
Shopify: https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/
Google Tag Manager: https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-within-gtm-google-tag-manager/
** Integrations
In most websites, blogs, CMS, etc. you can use a pre-made plugin to do the technical work for you. (See our list of plugins used to integrate Matomo.)
https://matomo.org/integrate/
** Log Analytics
If the Javascript tracking method isn’t feasible, you can use server log analytics as an alternative method for tracking your website’s users.
https://matomo.org/log-analytics/
** Mobile apps and SDKs
Not tracking a website? You can alternatively track a mobile app or any other type of application using one of the available SDKs.
https://matomo.org/integrate/#programming-language-platforms-and-frameworks
** HTTP Tracking API
The HTTP Tracking API allows you to track anything. This may be useful if you are using a programming language for which no SDK exists yet. It may also be useful when you want to track devices or application in a special way.
https://developer.matomo.org/api-reference/tracking-api