{"id":244593,"date":"2021-05-07T16:00:57","date_gmt":"2021-05-07T13:00:57","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/"},"modified":"2021-05-07T16:00:57","modified_gmt":"2021-05-07T13:00:57","slug":"how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/","title":{"rendered":"#How to Self Host Your Website Analytics With Plausible \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2a607866c0d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2a607866c0d\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Overview\" >Overview<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Installing_Plausible\" >Installing Plausible<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Connecting_Your_Website_to_Plausible\" >Connecting Your Website to Plausible<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Exploring_Plausible\" >Exploring Plausible<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Setting_Up_Email\" >Setting Up Email<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Enabling_Country_Data\" >Enabling Country Data<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-self-host-your-website-analytics-with-plausible-cloudsavvy-it\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Self Host Your Website Analytics With Plausible \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage aligncenter size-full wp-image-10963\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/c9ee33b5-1.jpg?width=1200&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Illustration showing the Plausible web analytics service dashboard and logo\" width=\"1600\" height=\"900\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Plausible is an open-source alternative to Google Analytics. It\u2019s available as a commercial hosted product and as free self-hosted software. In this guide, we\u2019ll show you how to setup Plausible and start gaining insights into your website\u2019s traffic.<\/p>\n<h2 id=\"overview\"><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/plausible.io\">Plausible<\/a> focuses on privacy, simplicity and actionable metrics. It\u2019s compliant with GDPR, CCPA and PECR legislation. Plausible doesn\u2019t set cookies on your visitors\u2019 devices, so you won\u2019t need intrusive privacy banners on your homepage.<\/p>\n<p>The Plausible web dashboard has a minimal design that lets you see visitor counts, total page views, bounce rates and visit durations. There\u2019s also overview data on origin countries, referring sources and visitor device types.<\/p>\n<p>To self-host Plausible, you\u2019ll need Docker and Docker Compose. Plausible is available <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/hub.docker.com\/r\/plausible\/analytics\">on Docker Hub<\/a> as <code>plausible\/analytics<\/code> but additional containers are required to run the database servers. It\u2019s recommended you use the official Docker Compose file in the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/plausible.io\/docs\/self-hosting\"><code>plausible\/hosting<\/code><\/a> GitHub repository to get started.<\/p>\n<h2 id=\"installing-plausible\"><span class=\"ez-toc-section\" id=\"Installing_Plausible\"><\/span>Installing Plausible<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Make sure you\u2019ve got Git, Docker and Docker Compose installed. Begin by cloning down the <code>plausible\/hosting<\/code> repository:<\/p>\n<pre>git clone https:\/\/github.com\/plausible\/hosting&#13;\ncd hosting<\/pre>\n<p>The repository contains pre-prepared configuration files that let you quickly spin up a fresh Plausible installation. The <code>docker-compose.yml<\/code> file should be ready to use. It links the dependency containers to the main Plausible <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a> container.<\/p>\n<p>Plausible will be exposed on port 8000 on your host. If you\u2019d prefer a different port, such as <code>8800<\/code>, find the <code>ports:<\/code> line in the <code>plausible<\/code> section of <code>docker-compose.yml<\/code>. Change the next line from <code>- 8000:8000<\/code> to <code>- 8800:8000<\/code> to bind host port 8800 to the container\u2019s port 8000.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10965\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/b5641ab9.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"463\" height=\"238\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Next open <code>plausible-conf.env<\/code> in your editor. This is the configuration file for the Plausible application server. It includes five default settings. They define the server\u2019s domain and setup an initial administrator user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10966\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/a48bb89b.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"225\" height=\"106\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Replace the <code>ADMIN_USER_EMAIL<\/code>, <code>ADMIN_USER_NAME<\/code> and <code>ADMIN_USER_PWD<\/code> values with your email address, name and password respectively. Your password must be at least six characters long. Set <code>BASE_URL<\/code> to the domain your Plausible server will be hosted on. You can use <code>http:\/\/localhost:8000<\/code> for local testing.<\/p>\n<p>The final configuration tweak is to provide a secret key to protect Plausible\u2019s authentication system. Generate a random string and add it as the value of <code>SECRET_KEY_BASE<\/code>. The string must be 64 characters long. You can use <code>openssl rand<\/code> to create a secure value:<\/p>\n<pre>openssl rand -base64 64<\/pre>\n<p>Now you\u2019re ready to start Plausible!<\/p>\n<pre>docker-compose up -d<\/pre>\n<p>It may take several seconds for Docker to pull the container images and start all the services. Once the pull process is complete, run <code>docker logs hosting_plausible_1 --follow<\/code> to check whether bootstrap is complete.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10967\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/7fe64274.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"560\" height=\"260\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Visit <code>http:\/\/localhost:8000<\/code> in your browser when you see \u201cmigrations successful\u201d appear in the logs. You should see the Plausible login screen. Login with the email address and password you configured.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10968\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/11363a57.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1278\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll be prompted to activate your account. The activation process sends you a verification code via email. The default configuration doesn\u2019t include functioning outgoing email, so it\u2019s best to manually skip this stage.<\/p>\n<p>Run the following command in your terminal:<\/p>\n<pre>docker exec hosting_plausible_db_1 psql -U postgres -d plausible_db -c \"UPDATE users SET email_verified = true;\"<\/pre>\n<p>This runs a plain SQL query against the Plausible database. The query will clear the pending verification flag from every user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10970\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/ffdb9626.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1266\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Return to <code>http:\/\/localhost:8000<\/code> in your browser. You should now see the Plausible dashboard. It will be empty as you haven\u2019t added any sites.<\/p>\n<h2 id=\"connecting-your-website-to-plausible\"><span class=\"ez-toc-section\" id=\"Connecting_Your_Website_to_Plausible\"><\/span>Connecting Your Website to Plausible<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A single Plausible server can collect data from multiple independent websites. You must use the Plausible dashboard to register each site you\u2019ll be monitoring. You then add the Plausible JavaScript tracking script to your site\u2019s HTML. This reports each page view to your Plausible server. The minified tracking script weighs in at under 1KB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10972\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/18612526.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1278\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Click \u201cAdd a website\u201d in the Plausible dashboard. You\u2019ll need to supply some basic information about your site. Enter the domain name root as <code>example.com<\/code>, without any subdomain prefix. This lets metrics from both <code>example.com<\/code> and <code>www.example.com<\/code> be collected by the same site property. Choose an appropriate timezone to use when computing reports.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10973\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/f6dbbb8e.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1278\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Click the \u201cAdd snippet\u201d button to confirm your settings. Plausible will display your site\u2019s <code>&lt;script&gt;<\/code> tag snippet. Add the code to the <code>&lt;head&gt;<\/code> section of your website\u2019s HTML. Each page load will download the script and report metrics back to Plausible.<\/p>\n<div class=\"wp-geshi-highlight-wrap5\">\n<div class=\"wp-geshi-highlight-wrap4\">\n<div class=\"wp-geshi-highlight-wrap3\">\n<div class=\"wp-geshi-highlight-wrap2\">\n<div class=\"wp-geshi-highlight-wrap\">\n<div class=\"wp-geshi-highlight\">\n<div class=\"html\">\n<pre class=\"de1\">&lt;!DOCTYPE html&gt;&#13;\n\u00a0\n&lt;html&gt;&#13;\n    &lt;head&gt;&#13;\n        &lt;meta charset=\"utf-8\" \/&gt;&#13;\n        &lt;title&gt;My Website&lt;\/title&gt;&#13;\n        &lt;script async defer data-domain=\"example.com\" src=\"http:\/\/localhost:8000\/js\/plausible.js\"&gt;&lt;\/script&gt;&#13;\n    &lt;\/head&gt;&#13;\n\u00a0\n    &lt;body&gt;&#13;\n        &lt;h1&gt;Example Website&lt;\/h1&gt;&#13;\n    &lt;\/body&gt;&#13;\n&lt;\/html&gt;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Plausible doesn\u2019t work with <code>localhost<\/code> domains. If you want to test against a site running on your machine, consider using <code>\/etc\/hosts<\/code> to map a temporary domain to it:<\/p>\n<pre>127.0.0.1   foobar.net<\/pre>\n<p>Register <code>foobar.net<\/code> as your site domain in Plausible, then visit <code>foobar.net<\/code> in your browser. Your website should display and hits will start appearing in Plausible.<\/p>\n<p>Once you\u2019ve finished setting up your site connection, click Plausible\u2019s \u201cStart collecting data\u201d button to visit your site\u2019s dashboard.<\/p>\n<h2 id=\"exploring-plausible\"><span class=\"ez-toc-section\" id=\"Exploring_Plausible\"><\/span>Exploring Plausible<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Plausible\u2019s simplistic UI gives you a quick at-a-glance overview of your site\u2019s performance. Key metrics such as total page views and unique visitors are shown at the top of the screen. Further down your dashboard, you\u2019ll see lists of your top-performing pages, external referrers and visitor device types. Data defaults to showing the last 30 days; you can change this using the dropdown in the top-right.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10975\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/6e2ae9a2.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1266\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To access your site settings, click the site name in the top-left. Press \u201cSite settings\u201d in the dropdown menu. Here you can manage your site\u2019s configuration.<\/p>\n<p>The \u201cVisibility\u201d section lets you make your dashboard publicly visible, without logging into Plausible. You can also generate unique sharable links which you can distribute to specific people.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10976\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/ffdb9626-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1266\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The \u201cGoals\u201d section provides a basic goal tracking\/event monitoring mechanism. You can define target URIs, such as <code>\/checkout-complete<\/code>, which Plausible will track.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10977\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/fc48665c.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1278\" height=\"656\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Create goals by heading to the \u201cGoals\u201d section, clicking \u201cAdd goal\u201d and filling out the form to provide a page URI to track. When a user visits the URI, it\u2019ll show up under \u201cGoal Conversions\u201d at the bottom of your dashboard.<\/p>\n<h2 id=\"setting-up-email\"><span class=\"ez-toc-section\" id=\"Setting_Up_Email\"><\/span>Setting Up Email<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The \u201cEmail reports\u201d site settings item lets you opt-in to weekly site performance reports and unusual traffic spike notifications. These won\u2019t work unless you provide Plausible with proper outgoing email settings.<\/p>\n<p>Plausible can send via an SMTP server or the Postmark transactional email service. To use SMTP, update your <code>plausible-conf.env<\/code> with the following additional settings:<\/p>\n<ul>\n<li><strong><code>MAILER_EMAIL<\/code><\/strong> \u2013 Email address which Plausible will send as<\/li>\n<li><strong><code>SMTP_HOST_ADDR<\/code><\/strong> \u2013 SMTP server to connect to (e.g.\u00a0<code>localhost<\/code>)<\/li>\n<li><strong><code>SMTP_HOST_PORT<\/code><\/strong> \u2013 SMTP server port<\/li>\n<li><strong><code>SMTP_USER_NAME<\/code><\/strong> \u2013 Username to connect as<\/li>\n<li><strong><code>SMTP_USER_PWD<\/code><\/strong> \u2013 Password to supply to the SMTP server (when needed)<\/li>\n<li><strong><code>SMTP_HOST_SSL_ENABLED<\/code><\/strong> \u2013 Either <code>true<\/code> or <code>false<\/code> to indicate whether to use SSL for SMTP connections.<\/li>\n<\/ul>\n<p>If you want to use Postmark, first make sure you\u2019ve got a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/postmarkapp.com\">Postmark account<\/a> and API key. Then update <code>plausible-conf.env<\/code> with the following settings:<\/p>\n<pre>MAILER_ADAPTER=Bamboo.PostmarkAdapter&#13;\nPOSTMARK_API_KEY=&lt;your api key&gt;<\/pre>\n<p>Once you\u2019re done tweaking your Plausible configuration, run <code>docker-compose up -d<\/code> to apply the changes and restart your containers. You should now be able to use Plausible\u2019s email functions.<\/p>\n<h2 id=\"enabling-country-data\"><span class=\"ez-toc-section\" id=\"Enabling_Country_Data\"><\/span>Enabling Country Data<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Plausible\u2019s dashboard includes a map widget that shows the countries your visitors originate from. This data isn\u2019t enabled by default. It has a dependency on the<br \/>database, which isn\u2019t distributed with Plausible itself.<\/p>\n<p>You need a GeoLite2 account to activate Plausible\u2019s geolocation features. Creating an account will produce an account ID and license key. Substitute these values into the <code>GEOIPUPDATE_ACCOUNT_ID<\/code> and <code>GEOIPUPDATE_LICENSE_KEY<\/code> variables in your <code>geoip\/geoip.conf<\/code> file.<\/p>\n<p>Next, use the following command to add a GeoLite2 database container to your Plausible stack:<\/p>\n<pre>docker-compose -f docker-compose.yml -f geoip\/docker-compose.geoip.yml up<\/pre>\n<p>Docker will pull the GeoLite database and make it available to the Plausible container. Future page view events should then include geolocation data which will be visible on the Plausible dashboard.<\/p>\n<h2 id=\"summary\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Plausible is a simple website analytics system which you can self-host. It lets you inspect the reach of your site without relying on a third-party service. Users won\u2019t be tracked across the web or frustrated by cookie banners.<\/p>\n<p>You can update to future Plausible versions by running <code>git pull<\/code> and <code>docker-compose up -d --pull<\/code>. This will update your running server instance to match the latest Plausible image published to Docker Hub.\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/10960\/how-to-self-host-your-website-analytics-with-plausible\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Self Host Your Website Analytics With Plausible \u2013 CloudSavvy IT&#8221; Plausible is an open-source alternative to Google Analytics. It\u2019s available as a commercial hosted product and as free self-hosted software. In this guide, we\u2019ll show you how to setup Plausible and start gaining insights into your website\u2019s traffic. Overview Plausible focuses on privacy,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":244594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/05\/c9ee33b5-1.jpg","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-244593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/244593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=244593"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/244593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/244594"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=244593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=244593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=244593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}