Installing on WordPress
The official plugin adds the snippet correctly, keeps it out of your theme files, and survives theme changes and updates. Two minutes, no code.
- Key takeaways
- Install from the plugin directory, paste the site ID, done, it survives theme changes.
- Logged-in admins are skipped by default so editing sessions don't count.
- WooCommerce purchases can fire a goal automatically on the order-received page.
Install and activate
- In wp-admin, go to
Plugins → Add Newand search for BobRay Analytics. - Install and activate.
- Open
Settings → BobRay, paste your site ID, save.
What the plugin handles for you
- Injects the snippet in
<head>on every template, including AMP-disabled fallbacks. - Skips logged-in administrators by default so your own editing sessions do not count.
- Adds a WooCommerce option that fires a
purchasegoal on the order-received page automatically.
Manual alternative
Prefer no plugin? Paste the snippet from The tracking snippet into your theme's header.php or via a header-scripts feature. The plugin exists mainly so updates never wipe it.
Common pitfalls
The mistakes we see most often on this topic, so you can skip them entirely.
- Also pasting the manual snippet into header.php alongside the plugin, double counting.
- Testing while logged in as admin and concluding tracking is broken.
- Caching plugins serving pre-plugin HTML; purge cache after activating.
Quick reference
| Install | Plugins → Add New → BobRay |
| Setting | Settings → BobRay → site ID |
| Admin visits | Skipped by default |
| WooCommerce | purchase goal, optional |
Did this solve it? If not, write to support with your site ID, a real person replies within one business day.