Installation & setup

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.

5 min read Updated June 2026 Installation & setup
<script defer src="cdn.bobray.com/b.js">

Install and activate

  1. In wp-admin, go to Plugins → Add New and search for BobRay Analytics.
  2. Install and activate.
  3. Open Settings → BobRay, paste your site ID, save.

What the plugin handles for you

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.

Quick reference

InstallPlugins → Add New → BobRay
SettingSettings → BobRay → site ID
Admin visitsSkipped by default
WooCommercepurchase goal, optional
Did this solve it? If not, write to support with your site ID, a real person replies within one business day.