PaywallProject Docs
  1. Home
  2. PaywallProject plugin
  3. Use Google Analytics or Site Kit with PaywallProject
  1. Home
  2. Analytics
  3. Use Google Analytics or Site Kit with PaywallProject

Use Google Analytics or Site Kit with PaywallProject

If you want Google Analytics on your site, add the Google tag the normal WordPress way. PaywallProject doesn’t need a setting for it. Once the tag is on every page of your site, it also loads on your articles with the paywall, on your subscribe page and on the checkout page.

Add the Google tag

Pick one of these. You only need one.

  • Site Kit by Google. Install the plugin, connect your Google account and turn on Analytics. Site Kit adds the tag to every page for you. This is the easiest option for most publishers.
  • A header and footer code plugin. Copy the Google tag code from your Google Analytics account and paste it in the plugin’s Header box. Then save your changes.
  • Your theme. Some themes have a box for analytics or header code. Your web developer can also add the tag to the theme.

Google Tag Manager plugins should work the same way.

Check that the tag is on your checkout page

  1. Open your subscribe page with a plan picked, for example yoursite.com/subscribe/?ppaccess_level=your-level. Replace your-level with the slug of one of your plans. If the checkout doesn’t open, check that the plan’s Disable direct sign-up link box isn’t ticked, or pick another plan.
  2. Check for the tag in one of two ways:
    • Use Google Tag Assistant (tagassistant.google.com) and connect it to that page. It should list your Google tag.
    • Or right-click the page, select View page source, and search for googletagmanager.com.
Example: page source of a standalone checkout page showing a script tag that loads googletagmanager.com/gtag/js with a demo measurement ID
Example: the Google tag in the page source of a standalone checkout page. The tag comes from Site Kit or your header plugin, not from PaywallProject. Your page shows your own ID instead of G-DOCSDEMO.

If the tag is missing on checkout

  • Update PaywallProject to the latest version. Older versions drew the standalone checkout page before Site Kit and some other plugins had added their tag. Tag Assistant then showed “No Google tags found” on that page. Since version 4.4.0, the standalone checkout gets the same tags as any other page on your site. This affects the Standalone Template and Standalone Full Width Template under PaywallProject → Checkout → Page template, and plans that use one of them. These templates only apply when Checkout style is set to Inline checkout. With Stripe Checkout (redirect), your checkout page uses the default template, so this fix doesn’t apply to you.
  • Check your cookie consent plugin. Many consent plugins hold the Google tag back until the reader accepts cookies. Accept cookies first, then check again.
  • Check your caching or speed plugin. Some delay scripts until the reader scrolls or clicks. Tag Assistant may not see the tag until then.

Good to know

  • The standalone checkout page tells caching plugins not to store it. Readers always get a fresh copy, so a change to your tag shows up there right away.
  • If your checkout style is Stripe Checkout (redirect), readers pay on Stripe’s own page at checkout.stripe.com. Your Google tag doesn’t run on that page, only on the pages of your site before and after it. The page template setting has no effect with this checkout style.
Updated on November 12, 2026
Was this article helpful?

Related Articles

Get more help
Can't find the answer you're looking for? Get in touch.
Contact support