WordPress server-side tracking

WordPress server-side tracking without pasting snippets: the Measurebase plugin installs the tags, sends the events and keeps caching plugins out of the way. 3 articles

On WordPress, a tracking snippet usually ends up in a theme file or a header plugin, where a theme update can quietly remove it. The Measurebase plugin for WordPress takes that step over: you connect your account, enter your GTM web container ID, and it prints the first-party tracking script at the top of every page.

It also tracks lead forms from Contact Form 7, WPForms, Gravity Forms and others, gives every script the do-not-block attribute of your consent banner, and can serve tracking from a path on your own domain so cookies keep their full lifetime on Safari. Running a shop? Installing Measurebase on WooCommerce goes from plugin upload to first purchase.

Start with the plugin guide. If you use a caching plugin, read WP Rocket and server-side tracking next: one setting can hide visitors who never click.

Start here: Server-side tracking for WordPress with the Measurebase plugin

WordPress server-side tracking

Frequently asked questions

Do I need a plugin for server-side tracking on WordPress?

No, you can paste the tracking snippet by hand. The Measurebase plugin saves you that step and does more: it prints the script on every page, pushes GA4 events, tracks lead forms and backs up paid WooCommerce orders from your server. Without the plugin, nothing excludes your scripts from caching plugins automatically.

Where do I get the Measurebase WordPress plugin?

Download the current zip under Resources → Downloads in your Measurebase dashboard. In WordPress, upload it under Plugins → Add New → Upload Plugin and activate it. Updates work the same way: upload the new zip and WordPress offers to replace the current version.

Does WP Rocket break tracking on WordPress?

One setting can: Delay JavaScript execution holds scripts back until the first click or scroll, so visitors who read a page and leave are never counted. From plugin version 0.10.3 the plugin excludes its own scripts and data layer by itself. Clear the cache after every tracking change. What to check in WP Rocket.

Put it into practice

Start free, no credit card required.

Start free