To integrate your website with Plausible Analytics, you need to be able to update the HTML code of the website you want to track. Paste your Plausible Analytics tracking script code into the Header (
<head>) section of your site. Place the tracking script within the
<head> … </head> tags.
On WordPress? We recommend you use our plugin. It is very lightweight, excludes admin visits by default and allows you to see the stats in your WP dashboard. It also avoids conflicts with WP Rocket and similar plugins that can happen with our snippet. See more here.
If you'd like to serve the script as a first-party connection from your domain name, we offer a way to proxy our script. See full details here.
Installing Plausible on a site can be a slightly different process depending on what tools you're using.
We've put together several guides that cover popular website builders and content management systems (CMS) such as WordPress and Ghost. Thanks to the members of our community, there are also integrations and plugins for several frameworks such as Hugo and GatsbyJS. We also have guides for single-page applications.
Here's the full list of all integrations and guides. These can help you set up and start counting your site visitors in no time.
You can use the same Plausible snippet on multiple sites and subdomains. Or you can add them all as individual sites to your Plausible account with their own unique snippets and separate dashboards. Which option to use depends on your preference.
There are two negatives of using the same Plausible snippet on multiple sites and subdomains:
You will have one dashboard with all the stats combined. You won't be able to see individual dashboard of the individual site separated from others.
If you have pages with identical page paths between the different sites (say
subdomain.yourdomain.com/best-page/), these identical page paths will be listed under one entry (
/best-page/in the "Top Pages" report with the stats combined into that one entry.
You can send stats to multiple Plausible dashboards by configuring the data-domain as a comma-separated list:
After you've added the Plausible Analytics script to the HTML of your website, you should see the script installed on your site and can verify that the integration is working.
In your Plausible Analytics account, click on your website domain name. You should see a blinking green dot which indicates that we’re listening for incoming page views in real-time.
There are no delays in stats with Plausible. Everything is live. Once the first page view comes through, you'll be automatically taken to the stats dashboard with graphs and numbers.
This is an indication that the integration is working, congrats! Plausible Analytics is now tracking your website statistics while preserving the privacy of your visitors.
Have some issues with the integration? Take a look at our guide to troubleshooting your Plausible Analytics integration.