Documentation

Up and running in minutes

Everything you need to install BobRay, track goals, and pull your data out whenever you like.

Quick start

1. Add the snippet

Paste this into the <head> of your site. That's the whole installation.

<script defer data-site="YOUR_SITE_ID" src="https://cdn.bobray.io/b.js"></script>

2. Track a goal

Fire a custom event from anywhere in your JavaScript:

window.bobray('signup', { plan: 'growth' })

3. Read your data

Pull stats from the REST API with your token:

curl https://api.bobray.io/v1/stats \
  -H "Authorization: Bearer YOUR_TOKEN"
Using a CMS? Install in two clicks with our plugins — no code required.
Integrations

Works with your stack

WordPress

Official plugin in the directory. Activate, paste your site ID, done.

Shopify

One-click app install with automatic checkout goal tracking.

Next.js & React

A small npm package with a drop-in component and hooks.

Ghost & Webflow

Paste the snippet into your site-wide code injection.

Webhooks

Send goal completions to Slack, Zapier, or your own endpoint.

Data export

Scheduled CSV exports straight to your warehouse or inbox.

Got a question?

Our support team answers technical questions within one business day.