Integration guides: WordPress, Shopify, Next.js and more
For most websites, paste your Plausible snippet into the <head> of each page or your shared layout. If you use a website builder, CMS or JavaScript framework, find your platform below for the exact steps.
Common ways to install Plausible
- WordPress or WooCommerce? Install our WordPress plugin.
- Already using Google Tag Manager? Add our GTM template.
- Want to bundle the tracker with your app? Use our NPM package.
- Sending events from a server or mobile app? Use the Events API.
Don't have a Plausible account yet? Create one first, then follow the guide for your platform
Website builders and CMS platforms
| Platform | How it works |
|---|---|
| Bubble.io | Plugin to integrate Plausible into Bubble |
| Buttondown | Track newsletter archive visits, outbound clicks and signups |
| Carrd | Add the snippet with an Embed component |
| Craft CMS | Dashboard widgets to display analytics data from Plausible |
| DatoCMS | Provides a link to Plausible for the current record on the sidebar |
| Discourse | Add the snippet to a theme component |
| Drupal | Use the Plausible Tracking module for custom events and downloads, or the Plausible module to exclude pages and user roles |
| Flipsite | Enable Plausible in your Flipsite settings |
| Framer | Add the snippet in your project’s Custom Code settings |
| Ghost | Paste the snippet into the site header using Code Injection |
| Grav | Add Plausible Analytics to your Grav CMS site and configure it from the admin panel |
| HubSpot | Paste the snippet into the Site header HTML field |
| Hugo | Install the community-maintained Hugo plugin or follow the manual setup |
| Kirby | Frontend snippet and Kirby panel |
| Magento / Adobe Commerce | Save visited pages, access analytics in admin area, manage goals and more |
| MediaWiki | MediaWiki extension to enable Plausible Analytics |
| Micro.blog | Integrate Micro.blog with Plausible Analytics. Add under "Find Plug-ins" in Micro.blog |
| Neos CMS | Add Plausible Analytics to your Neos site |
| Notion | Use a service like Potion or Super (paid tools) to add custom code to your Notion website |
| Odoo | Connect your Odoo website to Plausible Cloud |
| Open Journal Systems (OJS) | Displays the Plausible dashboard in the editor dashboard for journal editors and managers |
| PayloadCMS | Add charts and statistics widgets directly in your admin interface |
| Pika | Add the snippet to your site using custom code on the Pro plan |
| Podcastpage.io | Enable the Plausible script through the "Integrations" page of your dashboard |
| Prestashop | Add Plausible in Prestashop |
| Publii | Plausible plugin for Publii |
| Readymag | How to add the script to your Readymag website |
| Sanity.io | Show Plausible as an iframe inside of the Sanity dashboard |
| Shopify | Add the snippet to your theme for storefront traffic and a custom pixel for checkout and purchase revenue |
| Shopware | Add Plausible Analytics to Shopware 6 with custom events and ecommerce data |
| Squarespace | Add the snippet to your site header using Code Injection |
| Statamic | A wrapper around the Plausible API that fetches analytics into your dashboard |
| Sylius | Integrates Plausible seamlessly into your Sylius store |
| TYPO3 | TYPO3 extension for Plausible |
| Webflow | Paste the snippet in Site settings under Custom code |
| Wix | Add the snippet to all pages using Custom Code |
| WordPress | Install our WordPress plugin to track visits, view your dashboard in WordPress and measure WooCommerce revenue |
JavaScript frameworks
The snippet picks up changes from your Plausible site settings. Use our NPM package if you want to bundle the tracker with your app or pin its version.
| Framework | How it works |
|---|---|
| Astro | Add Plausible to your base layout, including sites that use the ClientRouter |
| Gatsby | A Gatsby plugin for adding Plausible Analytics to your Gatsby site |
| Gridsome | A plugin to add Plausible Analytics to your Gridsome site |
| Hexo | A simple Hexo plugin to inject Plausible script into your pages |
| Next.js | Follow the App Router guide for the snippet, NPM package and proxy options. The community package next-plausible also supports proxying |
| Nuxt | Nuxt module to natively integrate Plausible Analytics |
| React | Add Plausible to a client-side React app, for example one built with Vite |
| React Router | Add Plausible to React Router v7 in framework mode or library mode |
| TanStack Start | Add Plausible to your root route or initialize the NPM package on the client |
| Vue.js | Use vue-plausible for Vue or Nuxt, or v-plausible for Vue 3 or Nuxt 3 |
| VuePress | A VuePress-plugin for Plausible on your documentation website |
Plausible automatically tracks page changes in single-page apps that use pushState. For other routing setups, see hash-based routing or manual pageviews for Turbo.
Other ways to install Plausible
Google Tag Manager template
Install our Google Tag Manager template to track pageviews and custom events from GTM. You can reuse events you already send to GA4.
Documentation tools
| Platform | How it works |
|---|---|
| Doctave | How to add Plausible to your Doctave project |
| Docusaurus | How to add the script to your Docusaurus site |
| GitBook | Track traffic in your published spaces from your Plausible dashboard |
| HelpDocs | Native Plausible integration for your knowledge base |
| MkDocs | Plausible Analytics support in Material for MkDocs |
| Sphinx / Read The Docs | Plausible Sphinx extension |
| TypeDoc | TypeDoc Plausible plugin for your built HTML docs |
Backend frameworks and server-side libraries
Use the Events API to send pageviews and events from your server. The community libraries below cover tracking, proxying and querying stats.
| Library | How it works |
|---|---|
| Bridgetown | Provides the plausible Liquid tag & ERB helper to your Bridgetown site |
| Django-Plausible | Django module for easy Plausible integration, with Wagtail support |
| Django-plausible-proxy | Module to proxy requests and send server-side events to Plausible Analytics |
| Elixir | Elixir library to push events to Plausible |
| Go | Golang wrapper for the Plausible API |
| Jekyll | Web analytics for Jekyll. Install the plugin, configure it and you're done |
| Laravel Plausible | Blade view with the script tag for Plausible and a wrapper for custom events |
| Laravel Plausible API | A Laravel package for interacting with the Plausible API |
| Laravel Plausible Exclude | Quickly add a page to exclude your visits from Plausible |
| R | R wrapper for the Plausible API |
| Ruby | Simple wrapper to read the Plausible API with Ruby |
Mobile and native app SDKs
Use the Events API to track screen views in a native app, or choose a community SDK below. For Cordova, Capacitor and other hybrid apps, see tracking on localhost.
| Platform | How it works |
|---|---|
| Android SDK | An Android SDK for Plausible Analytics |
| Flutter | Send pageviews and custom events to Plausible |
| Qt6 / QML | Qt6 QML plugin for Plausible |
| Swift | Track pageviews and events with PlausibleSwift or AviaryInsights |
Special configurations
To serve the tracker and send events through your own domain, follow our proxy guide.
| Setup | How it works |
|---|---|
| DNT and offline | Add Do Not Track and offline functionality via the analytics library |
| Google AMP pages | Add an amp-analytics block to your AMP pages to track them with Plausible |
| Google Chrome extensions | Instructions for tracking Chrome browser extensions with Plausible |
| Segment | Connect Segment through our Google Tag Manager template |
| Stripe, Paddle, Lemon Squeezy and Polar | Send revenue from hosted and overlay checkouts to Plausible |
Use your Plausible data elsewhere
See Accessing your Plausible data for the Stats API, MCP server, exports and warehouse connectors. To build client reports, use our Looker Studio connector on the Business plan. Follow the connector setup guide to get started.
Monitoring and automation
| Tool | How it works |
|---|---|
| Grafana | Observe Plausible records from Prometheus in Grafana |
| n8n | Community node for working with the Plausible API |
| Prometheus | Add Plausible records to Prometheus with the Plausible exporter |
Let us know if you’ve built an integration you’d like us to include.