Install on WordPress
Add Open Analytics to a WordPress site: where the snippet goes and how to verify it.
The short way
From your project folder, let the CLI detect WordPress and place the snippet itself:
npx getopen initIt asks for your tracking key (dashboard, your site, Settings, Installation), writes the tag, and prints which file it changed. Prefer to do it by hand? The steps below are what it does.
Manual steps
1. Paste the snippet before </head> in your theme's header template. On a block theme, use a header-scripts plugin or your theme's custom-code field instead; any mechanism that lands the tag in <head> is fine.
<script
async
src="https://c.getopen.so/oa.js"
data-key="YOUR_TRACKING_KEY"
data-collector="https://c.getopen.so"
></script>2. A caching plugin may serve old HTML for a while; purge its cache after adding the tag.
3. Deploy (or run your dev server) and open the site once. The realtime view in your dashboard shows the visit within seconds; historical charts fill moments later.