Install
WordPress
One snippet in global head. Purge cache. Done.
WordPress
Do this
- Copy the WordPress snippet from StoreMetrics onboarding or Settings.
- Paste into global
<head>— Header Footer plugin, theme options, or a durable theme hook. - Save.
- Purge cache (WP plugin + CDN + host cache).
- Open the live site. Confirm a
page_viewin StoreMetrics.
Snippet shape
<script
defer
src="https://YOUR_STOREMETRICS_HOST/tracker.js"
data-velora-key="YOUR_SITE_KEY"
data-velora-site-id="YOUR_SITE_KEY"
data-velora-stack="wordpress"
></script>
Caching will gaslight you
If the dashboard stays quiet, you are almost always looking at a cached page without the script. Purge. Then hard refresh.
Blocked by CSP / security plugins?
Proxy tracker.js on your own domain and point the snippet at the proxy. Or temporarily allowlist your StoreMetrics host.
WooCommerce note
Page and product signals come from the tracker. Paid revenue is cleaner when you also connect Shopify (for Shopify) or Stripe if that is your checkout — WordPress alone does not invent paid-order webhooks.
Prompt
Install StoreMetrics on my WordPress site YOUR_DOMAIN.
Paste this snippet into the global head using the most durable method available (prefer a header/footer plugin over editing a parent theme file that updates will overwrite):
SCRIPT_FROM_VELORA_HERE
Then purge all caches and tell me how to verify in the StoreMetrics live feed.
If a security plugin or CSP blocks third-party scripts, propose a same-origin proxy.