Install on WordPress
No plugin of ours to install: the tag rides whatever header mechanism your site already has.
Where the tag goes
Copy the exact snippet from your dashboard; the
data-site-id identifies the installation. Complete the
separate DNS or homepage meta-tag check described in
Get started to verify domain ownership.
This snippet starts measuring on load. Where consent is required, add data-require-consent before loading and wire acceptance and withdrawal to your consent manager. The consent guide includes the calls and pre-load queue.
Pick whichever of these your site already uses:
- A header-scripts plugin (WPCode, "Insert Headers and Footers", or similar): paste the tag into the header/head slot, apply site-wide.
-
Your theme: in a classic theme, paste it into
header.phpbefore</head>; in a block theme, use your theme's custom-code slot if it has one, otherwise the plugin route is simpler.
<script defer src="https://app.datastated.com/ds.js?v=2026-09-10-consent"
data-site="acme.com" data-site-id="dst_YOUR_SITE_ID"></script>WooCommerce orders: the tag counts pageviews and goals on any WordPress site. For verified revenue, connect Stripe if that is your processor; a WooCommerce-native connection is not built yet.
Verify it worked
Open your live site in a normal browser window and click around. The installation step on your dashboard detects the first recorded pageview. Domain verification is a separate step. Nothing arriving? Walk the troubleshooting list, and remember your own ad blocker or privacy flags silence the tag.
Questions? Email us at hello@datastated.com.