StoreMetrics Docs

StoreMetrics Docs

Search product docs or ask for an answer based on the docs.

Install

WordPress

One snippet in global head. Purge cache. Done.

WordPress

Do this

  1. Copy the WordPress snippet from StoreMetrics onboarding or Settings.
  2. Paste into global <head> — Header Footer plugin, theme options, or a durable theme hook.
  3. Save.
  4. Purge cache (WP plugin + CDN + host cache).
  5. Open the live site. Confirm a page_view in 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.