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.
We offer a quick and easy way to serve the Plausible Analytics script from your domain name as a first-party connection. See the full instructions on how to setup a custom subdomain and serve the Plausible Analytics script as a first-party connection.
Installing Plausible on a site can be a slightly different process depending on what tools you're using.
We've put together several integration 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 community integrations and plugins for several frameworks such as Hugo and GatsbyJS. These can help you set up and start counting your site visitors in no time.
After you've added the Plausible Analytics script to the HTML of your website, you should see the script installed on your site.
You can load your website, open the browser inspector (press F12 on Firefox), and ensure that the Plausible Analytics script is loading in the "Network" tab.
Alternatively, you can verify this by viewing the HTML of your site in your favorite browser. In a browser such as Firefox, visit your website, right-click anywhere on the page and choose "View Page Source". Then press
cmd+f on a Mac or
ctrl+f on Linux and Windows to search. Type
plausible to search for the Plausible Analytics script.
You should see the Plausible Analytics tracking script in the source code of your website. If you cannot see the script, please double check if you've inserted it correctly.
After you've added the script to your website, it's time to 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.
If you don't see the green blinking dot, there's nothing to worry about. It just means that someone visited your site already since you installed the Plausible Analytics script.
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.
Contact firstname.lastname@example.org if you failed to verify that our script has been installed properly or if you cannot see any stats despite having visitors.
You're running Plausible on localhost? Our script automatically disables itself when running on localhost as the majority of people don't want those stats to be counted.
Using CSP? Do not forget to add our domain specifically to your Content Security Policy too.