Convert Figma logo to code with AI

matomo-org logomatomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!

19,798
2,637
19,798
2,422

Top Related Projects

20,060

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.

21,449

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.

22,306

Umami is a simple, fast, privacy-focused alternative to Google Analytics.

7,548

Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.

Quick Overview

Matomo (formerly Piwik) is an open-source web analytics platform that provides detailed reports on website visitors. It offers a privacy-friendly alternative to Google Analytics, allowing users to host their own analytics data and maintain full control over their information.

Pros

  • Privacy-focused: Self-hosted solution that gives users complete control over their data
  • Customizable: Offers a wide range of plugins and integrations for extended functionality
  • GDPR compliant: Helps websites meet data protection regulations
  • No sampling: Provides accurate data without relying on estimates

Cons

  • Requires self-hosting: May be challenging for users without technical expertise
  • Resource-intensive: Can be demanding on server resources, especially for high-traffic websites
  • Learning curve: Interface and setup process may be less intuitive than some commercial alternatives
  • Limited real-time capabilities compared to some competitors

Getting Started

  1. Download Matomo from the official website: https://matomo.org/download/
  2. Upload the files to your web server
  3. Create a MySQL database for Matomo
  4. Navigate to your Matomo URL and follow the installation wizard
  5. Add the tracking code to your website:
<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//{$MATOMO_URL}/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '{$IDSITE}']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

Replace {$MATOMO_URL} with your Matomo installation URL and {$IDSITE} with your website's ID in Matomo.

Competitor Comparisons

20,060

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.

Pros of Plausible

  • Lightweight and privacy-focused, with a smaller codebase
  • Simple setup and user-friendly interface
  • Open-source and self-hostable with easy deployment options

Cons of Plausible

  • Fewer advanced features compared to Matomo's extensive toolkit
  • Limited customization options and plugin ecosystem
  • Smaller community and less extensive documentation

Code Comparison

Plausible (JavaScript snippet):

<script defer data-domain="yourdomain.com" src="https://plausible.io/js/plausible.js"></script>

Matomo (JavaScript snippet):

<script>
  var _paq = window._paq = window._paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//matomo.yourdomain.com/";
    _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=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>

Plausible's tracking script is more concise and straightforward, while Matomo's offers more configuration options within the snippet itself.

21,449

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.

Pros of PostHog

  • More comprehensive feature set, including product analytics, session recording, and feature flags
  • Better suited for larger organizations and enterprise-level applications
  • More active development and frequent updates

Cons of PostHog

  • Steeper learning curve due to its extensive feature set
  • Higher resource requirements for self-hosted installations
  • May be overkill for smaller projects or websites

Code Comparison

PostHog (JavaScript):

posthog.init('<YOUR_PROJECT_API_KEY>', {
    api_host: 'https://app.posthog.com'
})
posthog.capture('my event', { property: 'value' })

Matomo (JavaScript):

var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
    var u="//matomo.example.com/";
    _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=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();

Both repositories offer powerful analytics solutions, but PostHog provides a more comprehensive suite of tools for product analytics and user behavior tracking. Matomo, on the other hand, focuses primarily on web analytics and offers a simpler setup process. The code comparison shows that PostHog has a more straightforward initialization process, while Matomo requires a bit more configuration.

22,306

Umami is a simple, fast, privacy-focused alternative to Google Analytics.

Pros of Umami

  • Lightweight and simple to set up, with a focus on privacy
  • Modern tech stack (Next.js, React) for a responsive UI
  • Self-hosted solution with no external dependencies

Cons of Umami

  • Limited features compared to Matomo's extensive analytics capabilities
  • Smaller community and ecosystem for support and integrations
  • Less customization options for advanced tracking and reporting

Code Comparison

Umami (JavaScript tracking code):

<script async defer data-website-id="YOUR-WEBSITE-ID" src="https://your-umami-website.com/umami.js"></script>

Matomo (JavaScript tracking code):

<script>
  var _paq = window._paq = window._paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//your-matomo-website.com/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', 'YOUR-SITE-ID']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>

Both projects offer simple tracking code implementation, but Matomo's code is more verbose and allows for additional customization directly in the snippet.

7,548

Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.

Pros of Fathom

  • Lightweight and fast, with minimal impact on site performance
  • Simple, user-friendly interface focused on essential metrics
  • Privacy-focused, compliant with GDPR and other regulations out-of-the-box

Cons of Fathom

  • Limited customization options compared to Matomo's extensive features
  • Fewer integrations with third-party tools and platforms
  • Less detailed reporting and data analysis capabilities

Code Comparison

Fathom (JavaScript snippet):

(function(f, a, t, h, o, m){
    a[h]=a[h]||function(){
        (a[h].q=a[h].q||[]).push(arguments)
    };
    o=f.createElement('script'),
    m=f.getElementsByTagName('script')[0];
    o.async=1; o.src=t; o.id='fathom-script';
    m.parentNode.insertBefore(o,m)
})(document, window, '//cdn.usefathom.com/tracker.js', 'fathom');
fathom('set', 'siteId', 'ABCDEF');
fathom('trackPageview');

Matomo (JavaScript snippet):

var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
    var u="//matomo.example.com/";
    _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=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();

Both snippets are relatively simple to implement, but Fathom's code is slightly more concise.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Matomo (formerly Piwik) - matomo.org

Latest Stable Version Latest Unstable Version License

Code Status

Matomo Tests Percentage of issues still open

Description

Matomo is the leading Free/Libre open analytics platform.

Matomo is a full-featured PHP MySQL software program that you download and install on your own webserver. At the end of the five-minute installation process, you will be given a JavaScript code. Simply copy and paste this tag on websites you wish to track and access your analytics reports in real-time.

Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in!

Mission Statement

« To create, as a community, the leading international open source digital analytics platform, that gives every user full control of their data. »

Or in short:

« Liberate Web Analytics »

License

Matomo is released under the GPL v3 (or later) license, see LICENSE.

Requirements

  • PHP 7.2.5 or greater
  • MySQL version 5.5 or greater, or MariaDB
  • PHP extension pdo and pdo_mysql, or the MySQLi extension
  • Matomo is OS / server independent

See https://matomo.org/docs/requirements/.

Install Matomo

  • Download Matomo
  • Upload matomo to your webserver
  • Point your browser to the directory
  • Follow the steps
  • Add the given javascript code to your pages
  • (You may also generate fake data to experiment, by enabling the plugin VisitorGenerator)

See https://matomo.org/docs/installation/.

(When using Matomo for development you need to install Matomo from the Git repository).

Free trial

If you do not have a server or don't want to host yourself you can use our Matomo Cloud partner service (21 day free trial): https://matomo.org/start-free-analytics-trial/

Online Demo

Check out the online demo for Matomo at demo.matomo.cloud.

Changelog

For the list of all tickets closed in the current and past releases, see matomo.org/changelog/. For the list of technical changes in the Matomo platform, see developer.matomo.org/changelog.

Get involved!

We believe in liberating Web Analytics, providing a free platform for simple and advanced analytics. Matomo was built by dozens of people like you, and we need your help to make Matomo better… Why not participate in a useful project today? Learn how you can contribute to Matomo.

Translations

Our translations are managed on Weblate.

Translation Status

Quality Assurance

The Matomo project uses an ever-expanding comprehensive set of thousands of unit tests and hundreds of automated integration tests, system tests, JavaScript tests, and screenshot UI tests, running on a continuous integration server as part of its software quality assurance. Learn more.

We use BrowserStack.com testing tool to help check the Matomo user interface is compatible with many browsers.

Security

Security is a top priority at Matomo. As potential issues are discovered, we validate, patch and release fixes as quickly as we can. We have a security bug bounty program in place that rewards researchers for finding security issues and disclosing them to us.

Learn more or check out our HackerOne program.

Support for Matomo

For Free support, post a message in our community forums: forum.matomo.org

For Professional paid support, purchase a Matomo On-Premises Support Plan: matomo.org/support-plans

Contact

Website: matomo.org

About us: matomo.org/team/

Contact us: matomo.org/contact/

More information

What makes Matomo unique from the competition:

  • You own your web analytics data: since Matomo is installed on your server, the data is stored in your own database and you can get all the statistics using the powerful Matomo Analytics API.

  • Matomo is a Free Software which can easily be configured to respect your visitors' privacy.

  • Modern, easy to use User Interface: you can fully customize your dashboard, drag and drop widgets and more.

  • Matomo features are built inside plugins: you can add new features and remove the ones you don’t need. You can build your own web analytics plugins or hire a consultant to have your custom feature built-in Matomo.

  • A vibrant international Open community of more than 200,000 active users (tracking even more websites!)

  • Advanced Web Analytics capabilities such as E-commerce Tracking, Goal tracking, Campaign tracking, Custom Variables, Email Reports, Custom Segment Editor, Geo Location, Real-time visits and maps, and a lot more!

Documentation and more info on https://matomo.org.

We are together creating the best open analytics platform in the world!