Analytics Built for WordPress.
WordPress powers a huge share of the web, and most of those sites run on analytics that stop at pageviews. Grain goes further: the official Grain Tag plugin (v4.x) auto-tracks pageviews and, if you run WooCommerce, the whole purchase path — product views, add-to-cart, checkout starts, and completed orders. Setup is a five-minute job you do once. Grain is cookieless by default and hosted in the EU, so you get session-level detail without a consent banner blocking the data. And when the numbers look off, Kai reads the sessions and tells you where the money is leaking.
The Setup
Install the Grain Tag plugin
In your WordPress admin, go to Plugins → Add New → Upload Plugin and upload the Grain Tag package (v4.x). Click Install Now, then Activate. There are two ways to get Grain onto a WordPress site — the plugin and a manual script — and it's worth knowing why we point almost everyone at the plugin. The plugin auto-injects the tag site-wide and detects WooCommerce for you, so you never touch a template. The manual route is pasting <script src="https://tag.grainql.com/v4/YOUR_TENANT_ID.js" async></script> into your theme's <head>; it works, but you'd have to wire up commerce events yourself and re-add the snippet every time you switch or update your theme. The plugin survives theme changes and keeps the commerce tracking intact, which is why it's the recommended path.
Find your Tenant ID
Open your Grain dashboard and copy your Tenant ID — it's the unique identifier that tells the tag which workspace to send data to. Every install is scoped to one Tenant ID, so if you run several WordPress sites under one account, make sure you grab the ID for the property you're setting up; sending two sites to the same ID would blend their data and make every report ambiguous. Keep it handy for the next step, and if you're ever unsure which ID belongs to which site, the dashboard lists them next to each domain.
Paste the Tenant ID into Grain Tag settings
Go to Settings → Grain Tag in your WordPress sidebar, paste your Tenant ID into the field, and save. That single value is the entire configuration — there are no tracking codes to place by hand and no data-layer wiring to maintain. From the moment you save, the plugin injects the tag on every page load across your site.
Let WooCommerce events track themselves
If WooCommerce is active, the plugin recognizes it and starts capturing the commerce funnel with no extra work: product page views, add-to-cart clicks, checkout starts, and completed purchases, each with order value attached. That means the drop-off between 'looked at product' and 'actually bought' becomes a number you can watch, not a guess. Non-commerce WordPress sites still get full pageview and session tracking on content, forms, and navigation.
Confirm the green light in your dashboard
Head back to the Grain dashboard and look for the pulsing green indicator next to your domain. Green means events are arriving and your install is healthy. Open a couple of pages on your live site (including a product page if you run WooCommerce) and watch them appear in real time — that's your proof the tag fired correctly before you rely on the data.
Verify the cookieless, GDPR-friendly setup
Grain is cookieless by default and stores data in the EU, so on most WordPress sites it doesn't require the analytics-cookie consent that GA4 does — fewer visitors opt out, which means you actually see the full picture instead of the consented sliver. Check your privacy policy still describes your analytics accurately, then you're done. No tag manager, no cookie banner gymnastics, no sampling.
Look for the "Green Light"
Once installed, head over to your Grain Dashboard. A pulsing green indicator next to your domain means data is flowing precisely as it should.
Key Benefit
"Jetpack and GA4 give you pageview counts and a bounce rate. Grain gives you the full WooCommerce funnel, the session replay of the checkout someone abandoned, and Kai naming the reason they left — so you're fixing the leak, not just watching the traffic."
"Kai, which blog posts actually drive product purchases?"
Because the plugin tracks both your content and your WooCommerce events under one tag, Kai can follow a visitor from the blog post that brought them in all the way to the order they placed. Ask it which posts drive revenue — not just traffic — and it'll connect the content, the product views, and the purchases. When conversions dip, hand it to Deep Investigation, Grain's six-phase audit, and it'll trace the drop back to the page, step, or segment responsible.