How to set up Plausible Analytics using Google Tag Manager

This document walks through how you can set up Plausible Analytics using Google Tag Manager.

Google Tag Manager Template

In order to make the process easier, we have published a template that makes setting up Plausible Analytics with Google Tag Manager simple and code free. (You can find the source code for the Google Tag Manager template used here)

The simplest way to install the custom template is to locate it in the Google Tag Manager template gallery where you can install it directly from your Google Tag Manager dashboard.

Alternatively, the template can be manually imported with the following steps:

  • Download the template.tpl file
  • Open a Google Tag Manager Web container inside Google Tag Manager
  • In Google Tag Manager browse to the Templates section and in the box titled Tag Templates click the blue New button.
  • Once the Template Editor is open, click the menu (three vertical dots) in the top-right corner of the window and choose Import.
  • Select the template.tpl file you downloaded previously

Once you’ve installed the template, either manually or through the template gallery, you should create a new Tag that uses it. To do this:

  • In the main Google Tag Manager dashboard, browse to Tags and click New to create a new tag
  • From the list of available tag templates, choose the Plausible Analytics tag template you just installed
  • The only mandatory field in the tag configuration is the Script ID that can be found in the Plausible Analytics dashboard under Site Settings > Site Installation > Google Tag Manager (other optional configuration options are described below in the section Tag Configuration)
  • For the tag trigger, you should select All Pages - Page View, which will ensure that Plausible will capture data on all pages

Tag Configuration

The tag has the following optional configuration options:

Optional Configuration Explanation
Auto Capture Pageviews Whether to automatically capture pageviews (enabled by default)
Capture on Localhost Whether to capture events on localhost (disabled by default)
File Downloads Automatically track file downloads (enabled by default)
Form Submissions Whether to track form submissions (enabled by default)
Hash Based Routing Automatically track page paths that use a # in the URL, described here (enabled by default)
Logging Whether to log on ignored events (enabled by default)
Outbound Links Automatically track clicks on outbound links (enabled by default)
Custom Properties Allows you to attach custom properties (also known as custom dimensions in Google Analytics) when sending a pageview event. These can be configured using Google Tag Manager variables.

Testing

You can test that everything is working as expected by using Google Tag Manager’s Preview mode. You can enter Preview mode by clicking the blue Preview button in the Google Tag Manager dashboard. This opens a new tab with your website running the GTM container where you can see if Plausible Analytics is running and capturing data properly. In the Tag Assistant Preview tab, you can see additional information about the events that trigger the tag and the data that is being sent.

Ready to dive in?
Start your free trial today.

Cloudflare Web Analytics vs Plausible Analytics

Cloudflare Web Analytics is a new player on the simple, privacy-first and de-Googled web analytics market.

Plausible: GDPR, CCPA and cookie law compliant site analytics

Even though the purpose of Plausible Analytics is to track the usage of a website, this can still be done without collecting any personal data or personally identifiable information (PII), without using cookies and while respecting the privacy of the website visitors.

What makes Plausible a great Google Analytics alternative

Many site owners have the habit of installing the Google Analytics tracking script on their sites as one of the first actions they take after the launch.

How to offer a white label web analytics dashboard powered by Plausible

We’ve made it easy for you to provide or resell a white label version of our simple and privacy-centric web analytics dashboard to your customers. We’ve built several features to make it easy to integrate web analytics powered by Plausible (but without our branding) directly into your user interface.

Plausible: Lightweight web analytics tool that doesn't slow down your site

Plausible Analytics script is lightweight. It’s much smaller than the Google Analytics Global Site Tag. Plausible will reduce your page weight and will prevent your site from loading slow.

Plausible: Open source Google Analytics alternative

Plausible Analytics is an open source, simple, lightweight and privacy-friendly Google Analytics alternative. One aspect that makes Plausible different from many of the other web analytics tools such as Google Analytics is the fact that Plausible is open source software. Let’s take a look at what that means exactly.

Plausible: Privacy-first web analytics plugin for WordPress

Plausible Analytics is an open source web analytics plugin for WordPress that is an easy to use, lightweight and privacy-friendly Google Analytics alternative.

Plausible: Privacy focused Google Analytics alternative

Even though the purpose of Plausible Analytics is to track the usage of a website, this can still be done without collecting any personal data or personally identifiable information (PII), without using cookies and while respecting the privacy of your website visitors.

Plausible: Self-Hosted Google Analytics alternative

Plausible Analytics is an open source web analytics tool. Our mission is to reduce corporate surveillance by making a useful and privacy-friendly website analytics tool that doesn’t come from the adtech world.

Plausible: The more accurate alternative to Google Analytics

“Every number in your Google Analytics account is wrong.” That is exactly what an independent study recently done by Orbit Media found. 

Easy to use, actionable and privacy-compliant analytics for ecommerce and startups

Plausible Analytics helps ecommerce and SaaS startups get some actionable data to make better decisions. At the same time, their visitors keep having a privacy-friendly and enjoyable experience.

Plausible: Simple web analytics tool you can use to measure site traffic

The goal of Plausible Analytics is to provide you all the valuable and actionable website traffic metrics at a glance in a simple and modern web analytics dashboard.

What makes Plausible a great Matomo alternative

Matomo, formerly known as Piwik, was founded in 2007 and has long been the most well known open source alternative to Google Analytics. Matomo is installed on 1.9% of all websites and this is an amazing success for a great open source web analytics project.

We've collected $78,000 in the two years of our donation fund

We’ve managed to collect $78,000 over the two years of this initiative and have made donations to different projects including the Red Cross, the Erlang Ecosystem Foundation, the Sea Shepherd, the Ocean Cleanup and the Mossy Earth.

Website analytics platform for bloggers and content creators

Many people create content on their personal websites and blogs. There are many motivations behind this. Some use it like a diary, some as a hobby, or as a way to connect to other people, as a way to build an audience, make money and even improve their career opportunities.

Website analytics platform for freelancers and agencies

One of the use cases Plausible Analytics was specifically designed for are the freelancers and agencies who work with clients developing their websites, communication and marketing practices.

Plausible: Powerful audience segmentation and visitor analysis

The one thing that has always helped Plausible grow is sticking to the needs of a specific set of audience. When we started as a simple-enough and privacy-first way of tracking website traffic, we automatically started appealing to individual creators.

Why pay for an analytics tool when Google Analytics is free?

Google Analytics has been the staple of the digital marketing industry. It’s the most commonly adopted web analytics tool on the internet, that it’s a habit–a no-brainer–for site owners to install and use it for tracking site performance. And because it’s always been free to use, that is part of the habit as well.