Install on WordPress, Shopify & more
Platform-specific steps for adding the Spectry snippet to popular CMS and e-commerce platforms.
Spectry's install dialog provides ready-made instructions for the most common platforms. The goal is always the same: get the snippet into the <head> of every page. Copy your exact snippet from Sites → the ⋯ menu → Install first.
WordPress
- In your WordPress admin, install a "header & footer scripts" plugin (or use your theme's header settings).
- Paste the Spectry snippet into the header section so it loads on every page.
- Save and clear any caching plugin.
Shopify
- Go to Online Store → Themes → Edit code.
- Open
theme.liquidand paste the snippet just before</head>. - Save. The snippet now loads on all storefront pages.
WooCommerce
WooCommerce runs on WordPress — follow the WordPress steps above. The snippet will also cover cart and checkout pages, which is important for checkout funnels.
Magento
- Go to Content → Design → Configuration and edit your theme.
- Under HTML Head → Scripts and Style Sheets, paste the snippet.
- Save and flush the cache.
Drupal
- Use a module such as "Asset Injector" (or your theme's
html.html.twig). - Add the snippet to the head region so it loads site-wide.
- Clear caches.
Custom / hand-coded sites
Paste the snippet directly into your base HTML template's <head>. For single-page apps (React, Vue, Angular), add it to the root index.html — Spectry automatically tracks client-side route changes.
After installing, always verify tracking.