Skip to main content

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

Don't have a Plausible account yet? Create one first, then follow the guide for your platform

Website builders and CMS platforms​

PlatformHow it works
Bubble.ioPlugin to integrate Plausible into Bubble
ButtondownTrack newsletter archive visits, outbound clicks and signups
CarrdAdd the snippet with an Embed component
Craft CMSDashboard widgets to display analytics data from Plausible
DatoCMSProvides a link to Plausible for the current record on the sidebar
DiscourseAdd the snippet to a theme component
DrupalUse the Plausible Tracking module for custom events and downloads, or the Plausible module to exclude pages and user roles
FlipsiteEnable Plausible in your Flipsite settings
FramerAdd the snippet in your project’s Custom Code settings
GhostPaste the snippet into the site header using Code Injection
GravAdd Plausible Analytics to your Grav CMS site and configure it from the admin panel
HubSpotPaste the snippet into the Site header HTML field
HugoInstall the community-maintained Hugo plugin or follow the manual setup
KirbyFrontend snippet and Kirby panel
Magento / Adobe CommerceSave visited pages, access analytics in admin area, manage goals and more
MediaWikiMediaWiki extension to enable Plausible Analytics
Micro.blogIntegrate Micro.blog with Plausible Analytics. Add under "Find Plug-ins" in Micro.blog
Neos CMSAdd Plausible Analytics to your Neos site
NotionUse a service like Potion or Super (paid tools) to add custom code to your Notion website
OdooConnect your Odoo website to Plausible Cloud
Open Journal Systems (OJS)Displays the Plausible dashboard in the editor dashboard for journal editors and managers
PayloadCMSAdd charts and statistics widgets directly in your admin interface
PikaAdd the snippet to your site using custom code on the Pro plan
Podcastpage.ioEnable the Plausible script through the "Integrations" page of your dashboard
PrestashopAdd Plausible in Prestashop
PubliiPlausible plugin for Publii
ReadymagHow to add the script to your Readymag website
Sanity.ioShow Plausible as an iframe inside of the Sanity dashboard
ShopifyAdd the snippet to your theme for storefront traffic and a custom pixel for checkout and purchase revenue
ShopwareAdd Plausible Analytics to Shopware 6 with custom events and ecommerce data
SquarespaceAdd the snippet to your site header using Code Injection
StatamicA wrapper around the Plausible API that fetches analytics into your dashboard
SyliusIntegrates Plausible seamlessly into your Sylius store
TYPO3TYPO3 extension for Plausible
WebflowPaste the snippet in Site settings under Custom code
WixAdd the snippet to all pages using Custom Code
WordPressInstall 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.

FrameworkHow it works
AstroAdd Plausible to your base layout, including sites that use the ClientRouter
GatsbyA Gatsby plugin for adding Plausible Analytics to your Gatsby site
GridsomeA plugin to add Plausible Analytics to your Gridsome site
HexoA simple Hexo plugin to inject Plausible script into your pages
Next.jsFollow the App Router guide for the snippet, NPM package and proxy options. The community package next-plausible also supports proxying
NuxtNuxt module to natively integrate Plausible Analytics
ReactAdd Plausible to a client-side React app, for example one built with Vite
React RouterAdd Plausible to React Router v7 in framework mode or library mode
TanStack StartAdd Plausible to your root route or initialize the NPM package on the client
Vue.jsUse vue-plausible for Vue or Nuxt, or v-plausible for Vue 3 or Nuxt 3
VuePressA 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​

PlatformHow it works
DoctaveHow to add Plausible to your Doctave project
DocusaurusHow to add the script to your Docusaurus site
GitBookTrack traffic in your published spaces from your Plausible dashboard
HelpDocsNative Plausible integration for your knowledge base
MkDocsPlausible Analytics support in Material for MkDocs
Sphinx / Read The DocsPlausible Sphinx extension
TypeDocTypeDoc 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.

LibraryHow it works
BridgetownProvides the plausible Liquid tag & ERB helper to your Bridgetown site
Django-PlausibleDjango module for easy Plausible integration, with Wagtail support
Django-plausible-proxyModule to proxy requests and send server-side events to Plausible Analytics
ElixirElixir library to push events to Plausible
GoGolang wrapper for the Plausible API
JekyllWeb analytics for Jekyll. Install the plugin, configure it and you're done
Laravel PlausibleBlade view with the script tag for Plausible and a wrapper for custom events
Laravel Plausible APIA Laravel package for interacting with the Plausible API
Laravel Plausible ExcludeQuickly add a page to exclude your visits from Plausible
RR wrapper for the Plausible API
RubySimple 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.

PlatformHow it works
Android SDKAn Android SDK for Plausible Analytics
FlutterSend pageviews and custom events to Plausible
Qt6 / QMLQt6 QML plugin for Plausible
SwiftTrack pageviews and events with PlausibleSwift or AviaryInsights

Special configurations​

To serve the tracker and send events through your own domain, follow our proxy guide.

SetupHow it works
DNT and offlineAdd Do Not Track and offline functionality via the analytics library
Google AMP pagesAdd an amp-analytics block to your AMP pages to track them with Plausible
Google Chrome extensionsInstructions for tracking Chrome browser extensions with Plausible
SegmentConnect Segment through our Google Tag Manager template
Stripe, Paddle, Lemon Squeezy and PolarSend 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​

ToolHow it works
GrafanaObserve Plausible records from Prometheus in Grafana
n8nCommunity node for working with the Plausible API
PrometheusAdd Plausible records to Prometheus with the Plausible exporter

Let us know if you’ve built an integration you’d like us to include.

Ready to ditch Google Analytics?

Start your free trial today