<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="ExDoc v0.30.3">
    <meta name="project" content="Plausible v0.0.1">

    <title>Introduction — Plausible v0.0.1</title>
    <link rel="stylesheet" href="dist/html-elixir-P5GXSCHE.css" />


    <script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
    <script src="dist/handlebars.templates-NBND3S2D.js"></script>
    <script src="dist/sidebar_items-9989F028.js"></script>

      <script src="docs_config.js"></script>

    <script async src="dist/html-CGDDOCMI.js"></script>


  </head>
  <body data-type="extras" class="page-extra">
    <script>

      try {
        var settings = JSON.parse(localStorage.getItem('ex_doc:settings') || '{}');

        if (settings.theme === 'dark' ||
           ((settings.theme === 'system' || settings.theme == null) &&
             window.matchMedia('(prefers-color-scheme: dark)').matches)
           ) {
          document.body.classList.add('dark')
        }
      } catch (error) { }
    </script>

<div class="main">

<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar">
  <i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
</button>

<section class="sidebar">
  <form class="sidebar-search" action="search.html">
    <button type="submit" class="search-button" aria-label="Submit Search">
      <i class="ri-search-2-line" aria-hidden="true" title="Submit search"></i>
    </button>
    <button type="button" tabindex="-1" class="search-close-button" aria-label="Cancel Search">
      <i class="ri-close-line ri-lg" aria-hidden="true" title="Cancel search"></i>
    </button>
    <label class="search-label">
      <p class="sr-only">Search</p>
      <input name="q" type="text" class="search-input" placeholder="Search..." aria-label="Input your search terms" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
    </label>
  </form>

  <div class="autocomplete">
    <div class="autocomplete-results">
    </div>
  </div>

  <div class="sidebar-header">

      <a href="readme.html">
        <img src="assets/logo.png" alt="Plausible" class="sidebar-projectImage">
      </a>

    <div class="sidebar-projectDetails">
      <a href="readme.html" class="sidebar-projectName" translate="no">
Plausible
      </a>
      <div class="sidebar-projectVersion" translate="no">
        v0.0.1
      </div>
    </div>
    <ul class="sidebar-listNav">
      <li><a id="extras-list-link" href="#full-list">Pages</a></li>

        <li><a id="modules-list-link" href="#full-list">Modules</a></li>


        <li><a id="tasks-list-link" href="#full-list"><span translate="no">Mix</span> Tasks</a></li>

    </ul>
  </div>

  <div class="gradient"></div>
  <ul id="full-list"></ul>
</section>

<section class="content">
  <output role="status" id="toast"></output>
  <div class="content-outer">
    <div id="content" class="content-inner">

<h1>
<button class="icon-action display-settings">
  <i class="ri-settings-3-line"></i>
  <span class="sr-only">Settings</span>
</button>


    <a href="https://github.com/plausible/analytics/blob/main/README.md#L1" title="View Source" class="icon-action" rel="help">
      <i class="ri-code-s-slash-line" aria-hidden="true"></i>
      <span class="sr-only">View Source</span>
    </a>


  <span>Plausible Analytics</span>
</h1>

<p align="center">  <a href="https://plausible.io/">
    <img src="https://raw.githubusercontent.com/plausible/docs/master/static/img/plausible-analytics-icon-top.png" width="140px" alt="Plausible Analytics" />
  </a></p><p align="center">    <a href="https://plausible.io/simple-web-analytics">Simple Metrics</a> |
    <a href="https://plausible.io/lightweight-web-analytics">Lightweight Script</a> |
    <a href="https://plausible.io/privacy-focused-web-analytics">Privacy Focused</a> |
    <a href="https://plausible.io/open-source-website-analytics">Open Source</a> |
    <a href="https://plausible.io/docs">Docs</a> |
    <a href="https://github.com/plausible/analytics/blob/master/CONTRIBUTING.md">Contributing</a>
    <br /><br /></p><p><a href="https://plausible.io/">Plausible Analytics</a> is an easy to use, lightweight (&lt; 1 KB), open source and privacy-friendly alternative to Google Analytics. It doesn’t use cookies and is fully compliant with GDPR, CCPA and PECR. You can self-host or have us run Plausible for you in the cloud. Here's <a href="https://plausible.io/plausible.io">the live demo of our own website stats</a>. Made and hosted in the EU 🇪🇺</p><p>We are dedicated to making web analytics more privacy-friendly. Our mission is to reduce corporate surveillance by providing an alternative web analytics tool which doesn’t come from the AdTech world. We are completely independent and solely funded by our subscribers.</p><p><img src="https://plausible.io/docs/img/plausible-analytics.png" alt="Plausible Analytics"/></p><h2 id="why-plausible" class="section-heading">
  <a href="#why-plausible">
    <i class="ri-link-m" aria-hidden="true"></i>
    Why Plausible?
  </a>
</h2>
<p>Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 11,000+ paying subscribers to deliver their website and business insights:</p><ul><li><strong>Clutter Free</strong>: Plausible Analytics provides <a href="https://plausible.io/simple-web-analytics">simple web analytics</a> and it cuts through the noise. No layers of menus, no need for custom reports. Get all the important insights on one single page. No training necessary.</li><li><strong>GDPR/CCPA/PECR compliant</strong>: Measure traffic, not individuals. No personal data or IP addresses are ever stored in our database. We don't use cookies or any other persistent identifiers. <a href="https://plausible.io/data-policy">Read more about our data policy</a></li><li><strong>Lightweight</strong>: Plausible Analytics works by loading a script on your website, like Google Analytics. Our script is <a href="https://plausible.io/lightweight-web-analytics">45x smaller</a>, making your website quicker to load. You can also send events directly to our <a href="https://plausible.io/docs/events-api">events API</a>.</li><li><strong>Email or Slack reports</strong>: Keep an eye on your traffic with weekly and/or monthly email or Slack reports. You can also get traffic spike notifications.</li><li><strong>Invite team members and share stats</strong>: You have the option to be transparent and open your web analytics to everyone. Your website stats are private by default but you can choose to make them public so anyone with your custom link can view them. You can <a href="https://plausible.io/docs/users-roles">invite team members</a> and assign user roles too.</li><li><strong>Define key goals and track conversions</strong>: Create custom events with custom dimensions to track conversions and attribution to understand and identify the trends that matter. Includes easy ways to track outbound link clicks, file downloads and 404 error pages.</li><li><strong>Search keywords</strong>: Integrate your dashboard with Google Search Console to get the most accurate reporting on your search keywords.</li><li><strong>SPA support</strong>: Plausible is built with modern web frameworks in mind and it works automatically with any pushState based router on the frontend. We also support frameworks that use the URL hash for routing. See <a href="https://plausible.io/docs/hash-based-routing">our documentation</a>.</li><li><strong>Smooth transition from Google Analytics</strong>: There's a realtime dashboard, entry pages report and integration with Search Console. You can track your paid campaigns and conversions. You can invite team members. You can even <a href="https://plausible.io/docs/google-analytics-import">import your historical Google Analytics stats</a>. Learn how to <a href="https://plausible.io/docs/your-plausible-experience">get the most out of your Plausible experience</a> and join thousands who have already migrated from Google Analytics.</li></ul><p>Interested to learn more? <a href="https://plausible.io">Read more on our website</a>, learn more about the team and the goals of the project on <a href="https://plausible.io/about">our about page</a> or explore <a href="https://plausible.io/docs">the documentation</a>.</p><h2 id="why-is-plausible-analytics-cloud-not-free-like-google-analytics" class="section-heading">
  <a href="#why-is-plausible-analytics-cloud-not-free-like-google-analytics">
    <i class="ri-link-m" aria-hidden="true"></i>
    Why is Plausible Analytics Cloud not free like Google Analytics?
  </a>
</h2>
<p>Plausible Analytics is an independently owned and actively developed project. To keep the project development going, to stay in business, to continue putting effort into building a better product and to cover our costs, we need to charge a fee.</p><p>Google Analytics is free because Google has built their company and their wealth by collecting and analyzing huge amounts of personal information from web users and using these personal and behavioral insights to sell advertisements.</p><p>Plausible has no part in that business model. No personal data is being collected and analyzed either. With Plausible, you 100% own and control all of your website data. This data is not being shared with or sold to any third-parties.</p><p>We choose the subscription business model rather than the business model of surveillance capitalism. See reasons why we believe you should <a href="https://plausible.io/blog/remove-google-analytics">stop using Google Analytics on your website</a>.</p><h2 id="getting-started-with-plausible" class="section-heading">
  <a href="#getting-started-with-plausible">
    <i class="ri-link-m" aria-hidden="true"></i>
    Getting started with Plausible
  </a>
</h2>
<p>The easiest way to get started with Plausible is with <a href="https://plausible.io/#pricing">our official managed service in the cloud</a>. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us.</p><p>In order to be compliant with the GDPR and the Schrems II ruling, all visitor data for our managed service in the cloud is exclusively processed on servers and cloud infrastructure owned and operated by European providers. Your website data never leaves the EU.</p><p>Our managed hosting can save a substantial amount of developer time and resources. For most sites this ends up being the best value option and the revenue goes to funding the maintenance and further development of Plausible. So you’ll be supporting open source software and getting a great service!</p><h3 id="can-plausible-analytics-be-self-hosted" class="section-heading">
  <a href="#can-plausible-analytics-be-self-hosted">
    <i class="ri-link-m" aria-hidden="true"></i>
    Can Plausible Analytics be self-hosted?
  </a>
</h3>
<p>Plausible is <a href="https://plausible.io/open-source-website-analytics">open source web analytics</a> and we have a free as in beer <a href="https://plausible.io/self-hosted-web-analytics">self-hosted solution</a>. Here are the differences between Plausible Analytics managed hosting in the cloud and the self-hosting:</p><table><thead><tr><th style="text-align: left;"></th><th style="text-align: left;">Plausible Cloud</th><th style="text-align: left;">Self-Hosting</th></tr></thead><tbody><tr><td style="text-align: left;">Hosting</td><td style="text-align: left;">Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you don’t have to worry about anything and can focus on your stats.</td><td style="text-align: left;">You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on.</td></tr><tr><td style="text-align: left;">Storage</td><td style="text-align: left;">All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU.</td><td style="text-align: left;">You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant.</td></tr><tr><td style="text-align: left;">Features</td><td style="text-align: left;">Continuously developed and improved with new features and updates multiple times per week.</td><td style="text-align: left;"><a href="https://plausible.io/blog/building-open-source">It's a long term release</a> published twice per year. Selected premium features are not available as we aim to ensure a protective barrier around our cloud offering.</td></tr><tr><td style="text-align: left;">Raw data</td><td style="text-align: left;">You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the <a href="https://plausible.io/docs/export-stats">CSV export</a>, <a href="https://plausible.io/docs/stats-api">stats API</a> or tools such as the <a href="https://plausible.io/docs/integration-guides#google-data-studio">Data Studio Connector</a>.</td><td style="text-align: left;">Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database.</td></tr><tr><td style="text-align: left;">Premium Support</td><td style="text-align: left;">Real support delivered by real human beings who build and maintain Plausible.</td><td style="text-align: left;">Premium support is not included. Self-hosting is community supported only.</td></tr><tr><td style="text-align: left;">Costs</td><td style="text-align: left;">There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible.</td><td style="text-align: left;">You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us.</td></tr></tbody></table><p>Interested in self-hosting Plausible on your server? Take a look at our <a href="https://plausible.io/docs/self-hosting">self-hosting installation instructions</a>.</p><p>Plausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a <a href="https://github.com/plausible/analytics/discussions/categories/self-hosted-support">community supported forum</a> where you can ask for help.</p><p>Our only source of funding is our premium, managed service for running Plausible in the cloud. If you're looking for an alternative way to support the project, we've put together some sponsorship packages. If you choose to self-host Plausible you can <a href="https://github.com/sponsors/plausible">become a sponsor</a> which is a great way to give back to the community and to contribute to the long-term sustainability of the project.</p><h2 id="technology" class="section-heading">
  <a href="#technology">
    <i class="ri-link-m" aria-hidden="true"></i>
    Technology
  </a>
</h2>
<p>Plausible Analytics is a standard Elixir/Phoenix application backed by a PostgreSQL database for general data and a Clickhouse
database for stats. On the frontend we use <a href="https://tailwindcss.com/">TailwindCSS</a> for styling and React to make the dashboard interactive.</p><h2 id="contributors" class="section-heading">
  <a href="#contributors">
    <i class="ri-link-m" aria-hidden="true"></i>
    Contributors
  </a>
</h2>
<p>For anyone wishing to contribute to Plausible, we recommend taking a look at <a href="https://github.com/plausible/analytics/blob/master/CONTRIBUTING.md">our contributor guide</a>.</p><a href="https://github.com/plausible/analytics/graphs/contributors"><img src="https://opencollective.com/plausible/contributors.svg?width=800&button=false" /></a><h2 id="feedback-roadmap" class="section-heading">
  <a href="#feedback-roadmap">
    <i class="ri-link-m" aria-hidden="true"></i>
    Feedback &amp; Roadmap
  </a>
</h2>
<p>We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our <a href="https://plausible.io/feedback">feedback board</a>. Please let us know if you have any requests and vote on open issues so we can better prioritize.</p><p>To stay up to date with all the latest news and product updates, make sure to follow us on <a href="https://twitter.com/plausiblehq">X (formerly Twitter)</a>, <a href="https://www.linkedin.com/company/plausible-analytics/">LinkedIn</a> or <a href="https://fosstodon.org/@plausible">Mastodon</a>.</p><h2 id="license-trademarks" class="section-heading">
  <a href="#license-trademarks">
    <i class="ri-link-m" aria-hidden="true"></i>
    License &amp; Trademarks
  </a>
</h2>
<p>Plausible is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can <a href="https://github.com/plausible/analytics/blob/master/LICENSE.md">find it here</a>.</p><p>To avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can <a href="https://github.com/plausible/analytics/blob/master/tracker/LICENSE.md">find it here</a>.</p><p>Copyright (c) 2018-present Plausible Insights OÜ. Plausible Analytics name and logo are trademarks of Plausible Insights OÜ. Please see our <a href="https://plausible.io/trademark">trademark guidelines</a> for info on acceptable usage.</p>
<div class="bottom-actions">
  <div class="bottom-actions-item">

      <a href="api-reference.html" class="bottom-actions-button" rel="prev">
        <span class="subheader">
          ← Previous Page
        </span>
        <span class="title">
API Reference
        </span>
      </a>

  </div>
  <div class="bottom-actions-item">

      <a href="contributing.html" class="bottom-actions-button" rel="next">
        <span class="subheader">
          Next Page →
        </span>
        <span class="title">
Contributing
        </span>
      </a>

  </div>
</div>
      <footer class="footer">
        <p>

          <span class="line">
            <button class="a-main footer-button display-quick-switch" title="Search HexDocs packages">
              Search HexDocs
            </button>

              <a href="Plausible.epub" title="ePub version">
                Download ePub version
              </a>

          </span>
        </p>

        <p class="built-using">
          Built using
          <a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.30.3) for the

            <a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>

        </p>
      </footer>
    </div>
  </div>
</section>
</div>

<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>

  </body>
</html>