{"id":1764,"date":"2023-02-28T12:30:00","date_gmt":"2023-02-28T18:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1764"},"modified":"2023-01-31T08:54:28","modified_gmt":"2023-01-31T14:54:28","slug":"how-to-install-plausible-analytics-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/","title":{"rendered":"How To Install Plausible Analytics on Ubuntu 22.04"},"content":{"rendered":"\n<div id=\"linux-1080161930\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>Plausible Analytics is a free and open-source, self-hosted web analytics application that helps you to track your website visitors. It is a simple analytics alternative to Google Analytics.<\/p>\n\n\n\n<p>In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu 22.04 VPS<\/li>\n\n\n\n<li>Full SSH root access or a user with sudo privileges is required<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Log in to the server and update<\/h2>\n\n\n\n<p>Login to your Ubuntu 22.04 VPS via SSH. In this article, we will use \u2018root\u2019 to run the shell commands.<\/p>\n\n\n\n<p>If you want to use your regular system user with sudo privileges to run the commands, make sure to append \u2018sudo\u2019 in front of the commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># ssh root@IP_Address -p Port_Number<\/pre>\n\n\n\n<p>You need to replace \u201cIP_Address\u201d and \u201cPort_number\u201d with your server\u2019s IP address and SSH port number.<\/p>\n\n\n\n<p>We can run these commands to ensure that all installed packages are up to date.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update\n# apt upgrade<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Install Docker CE and Docker Compose<\/h2>\n\n\n\n<p>By default, the latest Docker CE package is not available in the Ubuntu 22.04 default repository, so you will need to add the Docker CE official repository to your server.<\/p>\n\n\n\n<p>Use the following command to install the dependencies or pre-requisite packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt-get install git apt-transport-https ca-certificates curl software-properties-common -y<\/pre>\n\n\n\n<p>Then, add the GPG key and repository with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/docker-archive-keyring.gpg\n# add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\"<\/pre>\n\n\n\n<p>Now you can install Docker and Docker Compose with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update\n# apt-get install docker-ce docker-compose<\/pre>\n\n\n\n<p>Verify the Docker version with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># docker --version<\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Docker version 20.10.21, build baeda1f\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Download Plausible<\/h2>\n\n\n\n<p>Next, you need to clone the Plausible repository from the GitHub repository. To do this, go to the <code><strong>\/opt<\/strong><\/code>&nbsp;directory with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cd \/opt<\/pre>\n\n\n\n<p>Then, you can download it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># git clone https:\/\/github.com\/plausible\/hosting plausible<\/pre>\n\n\n\n<p>Now move into the new directory that you have created:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cd plausible<\/pre>\n\n\n\n<p>Generate a secrete password with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># openssl rand 64 | base64 -w 0 ; echo<\/pre>\n\n\n\n<p>This command will create 64 random characters:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">VSqCkxxFh0lQAcKgM+NmLzya28kbAr++FBL8b6qUxtAi9AeGScacv+fSGfYBqHiAVevv3H70qIJML1MabF+Klg==\n<\/pre>\n\n\n\n<p>Copy them, then open the Plausible configuration file with your favorite text editor:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano plausible-conf.env<\/pre>\n\n\n\n<p>The file contains five variables that you\u2019ll need to fill in:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ADMIN_USER_EMAIL=admin@your-domain.com\nADMIN_USER_NAME=admin\nADMIN_USER_PWD=Str0ng_Passw0rd\nBASE_URL=https:\/\/plausible.your-domain.com\nSECRET_KEY_BASE=VSqCkxxFh0lQAcKgM+NmLzya28kbAr++FBL8b6qUxtAi9AeGScacv+fSGfYBqHiAVevv3H70qIJML1MabF+Klg==<\/pre>\n\n\n\n<p><strong>Note:<\/strong>&nbsp; The password you define here must be at least 6 characters.<\/p>\n\n\n\n<p>Now you need to update the <strong>docker-compose.yml<\/strong> file. Open the file with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano docker-compose.yml<\/pre>\n\n\n\n<p>Find the Plausible section in the file and search for the ports, and update it to the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ports:\n- 127.0.0.1:8000:8000<\/pre>\n\n\n\n<p>Then use the following command to download, configure, and launch the containers:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># docker-compose up --detach<\/pre>\n\n\n\n<p>This ensures that Plausible only listens on the localhost interface and is not publicly available.<\/p>\n\n\n\n<p>Plausible Analytics has been installed and is now running on port <strong>8000<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Install Apache Web Server and Create Apache Virtual Host File<\/h2>\n\n\n\n<p>To install the Apache web server execute the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install apache2<\/pre>\n\n\n\n<p>Once installed, start and enable the service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl enable apache2 &amp;&amp; systemctl start apache2<\/pre>\n\n\n\n<p>Check if the service is up and running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl status apache2<\/pre>\n\n\n\n<p>Enable the <strong>proxy<\/strong> and <strong>proxy_http<\/strong> modules in Apache using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># a2enmod proxy\n# a2enmod proxy_http<\/pre>\n\n\n\n<p>To access Plausible Analytics via domain name, we need to create Apache Virtual Host file.<\/p>\n\n\n\n<p>First, create the configuration file with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano \/etc\/apache2\/sites-available\/plausible.conf<\/pre>\n\n\n\n<p>Open the file, and paste the following lines of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\n     ServerAdmin admin@your_domain.com\n     ServerName plausible.your-domain.com\n\n     ErrorLog ${APACHE_LOG_DIR}\/plausible.your-domain_error.log\n     CustomLog ${APACHE_LOG_DIR}\/plausible.your-domain_access.log combined\n\n        ProxyPreserveHost On\n        ProxyPass \/ http:\/\/127.0.0.1:8000\/\n        ProxyPassReverse \/ http:\/\/127.0.0.1:8000\/\n\n&lt;\/VirtualHost&gt;\n<\/pre>\n\n\n\n<p>Enable the Apache2 configuration file and other modules:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># a2ensite plausible.conf\n<\/pre>\n\n\n\n<p>Check the syntax of the Apache2 configuration.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apachectl -t<\/pre>\n\n\n\n<p>You should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# apachectl -t\nSyntax OK\n<\/pre>\n\n\n\n<p>If you receive this output, you can safely restart the Apache service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl restart apache2<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Install an SSL Certificate<\/h2>\n\n\n\n<p>This step will show you how to install an SSL certificate for your Plausible website using the free one from Let\u2019s Encrypt.<\/p>\n\n\n\n<p>Install the required packages by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install python3-certbot-apache<\/pre>\n\n\n\n<p>Then run this command to install a new SSL certificate for your domain name:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># certbot --apache -d plausible.your-domain.com<\/pre>\n\n\n\n<p id=\"block-92167d96-91ff-41a7-a1d3-1fdbca1e1a4a\">Please select \u20182\u2019 and choose to redirect HTTP traffic to HTTPS. It will update your Plausible Apache virtual host file to redirect all HTTP traffic to HTTPS.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n1: No redirect - Make no further changes to the webserver configuration.\n2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for\nnew sites, or if you're confident your site works on HTTPS. You can undo this\nchange by editing your web server's configuration.\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nSelect the appropriate number [1-2] then [enter] (press 'c' to cancel): 2<\/pre>\n\n\n\n<p>You should now be able to access your Plausible Analytics at <code>https:\/\/plausible.your-domain.com<\/code><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/11\/plausible.jpg\" alt=\"Plausible Analytics\" class=\"wp-image-43617\"\/><\/figure>\n<\/div>\n\n\n<p>If you are one of our web hosting clients and use our managed <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Ubuntu Hosting<\/a>, you don\u2019t have to follow this tutorial and install Plausible Analytics on your Ubuntu 22.04 server yourself. You can simply ask our expert Linux hosting admins to set all of these up for you quickly and easily.&nbsp; They are available 24\u00d77 and will respond to your request immediately.<\/p>\n\n\n\n<p>PS. If you liked this post, please share it with your friends on social networks using the buttons below, or simply leave a comment in the comments section. Thank you.<\/p><div id=\"linux-3265644366\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Plausible Analytics is a free and open-source, self-hosted web analytics application that helps you to track your website visitors. It is a simple analytics alternative to Google Analytics. In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics.<\/p>\n","protected":false},"author":1,"featured_media":1765,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,182],"tags":[199,239,20],"class_list":["post-1764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-how-to-install","tag-plausible-analytics","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let&#039;s get started!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let&#039;s get started!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-28T18:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How To Install Plausible Analytics on Ubuntu 22.04\",\"datePublished\":\"2023-02-28T18:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/\"},\"wordCount\":705,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-plausible-analytics-on-ubuntu.webp\",\"keywords\":[\"how to install\",\"plausible analytics\",\"ubuntu\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/\",\"name\":\"How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-plausible-analytics-on-ubuntu.webp\",\"datePublished\":\"2023-02-28T18:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let's get started!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-plausible-analytics-on-ubuntu.webp\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/how-to-install-plausible-analytics-on-ubuntu.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install plausible analytics on ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-plausible-analytics-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Plausible Analytics on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport","description":"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let's get started!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport","og_description":"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let's get started!","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2023-02-28T18:30:00+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How To Install Plausible Analytics on Ubuntu 22.04","datePublished":"2023-02-28T18:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/"},"wordCount":705,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp","keywords":["how to install","plausible analytics","ubuntu"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/","name":"How To Install Plausible Analytics on Ubuntu 22.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp","datePublished":"2023-02-28T18:30:00+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will install Plausible in a docker container and then install Apache as a reverse proxy for Plausible Analytics. Let's get started!","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2023\/01\/how-to-install-plausible-analytics-on-ubuntu.webp","width":742,"height":372,"caption":"how to install plausible analytics on ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-plausible-analytics-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Plausible Analytics on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1764"}],"version-history":[{"count":1,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1764\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1764\/revisions\/1766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1765"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}