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
Plugin, connection, web container ID, WooCommerce data layer and server-side purchase backup, matching GTM template, your own domain, test.
Connect once and the plugin installs your tags, pushes the full GA4 ecommerce and lead-form dataLayer, and backs every purchase up server-side with retries.
Speed up WordPress without losing page views or shop events: what the plugin handles for you, clearing the cache and the checks.
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.
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.
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.