# Goals & Conversion Tracking

> How Ours Privacy experiments measure results. Pick any event you already send your CDP as your goal, set a primary metric, and send new events with the Web SDK, Tag Manager, or server-side.

Source: https://docs.oursprivacy.com/docs/experimentation/goals

Every experiment is measured against a **goal event**: the conversion you're trying to move.

> **Already sending events to your CDP?** Then you already have goal events, so skip to [Set your goal event](#set-your-goal-event).

***

## How Experiments Measure Results

Experiments do not have their own event tracking. They measure against the **same events you already send Ours Privacy** for the rest of your CDP: page views, button clicks, form submits, purchases, or any custom event your team fires.

![The Conversion rate with 95% intervals card from a results tab, showing the control at 5.40% and the variant at 8.37% each drawn as a credible-interval bar with a dot for the observed rate, the two bars clearly not overlapping, and a caption explaining that overlapping intervals mean the difference is not yet reliable](https://docs.oursprivacy.com/img/experimentation/experimentation-img-10.jpg)

So an experiment only tells you which variant won if a goal event is firing. With no events, there is nothing to compare variants against and no winner to declare.

This is the key mental model: **you send events to Ours Privacy, then optimize for any event you've sent.** There's no separate experiment-tracking step and no separate reporting silo. Impressions and your existing conversion events flow into the same analytics you already use.

If you're coming from a tool that lets you highlight an element on the page to auto-create a click event, the equivalent in Ours Privacy is to **send that event to Ours Privacy** (the Web SDK can capture clicks for you), then pick it as your goal. You define the event once and reuse it everywhere: analytics, audiences, destinations, and experiments.

***

## Set Your Goal Event

Pick a **primary metric** when you create the experiment: any event already flowing through your CDP. A page view, a button click, a form submit, a purchase. If you're tracking it, you can measure against it.

![The What are you testing? step of Create Experiment with Redirect Experiment selected, the name Appointment CTA (request vs book), its generated key, a hypothesis, appointment_booked chosen as the primary event, the Measure average value toggle switched off, and the summary panel listing the goal as appointment_booked Conversion](https://docs.oursprivacy.com/img/experimentation/experimentation-img-2.jpg)

* Set the primary metric in the **creation wizard**.
* A primary metric and at least two variants are **required before an experiment can start**. If you [manage experiments with AI](https://docs.oursprivacy.com/docs/experimentation/manage-with-ai), include the goal event in your prompt, for example, *"...with primary metric `signup_completed`."*
* Add **secondary metrics** to watch other events alongside the primary one without changing what the experiment optimizes for.

### Count an event only when its properties match

A goal can carry a filter, so `form_submitted` counts only when `form_id` equals `appointment`. Select **Add condition** on the goal and build the filter with the same operators as Funnels. A goal can also accept any of several event-and-filter options with **OR event**. The filter applies everywhere the goal is read: totals, the daily series, and the statistics.

A conversion counts when the goal event happens after a visitor sees a version of your experiment. By default, Bayesian results include that visitor right away. If people usually need a few days to convert, turn on **Wait 7 days for outcomes** before starting the experiment. Results will show **Finalizing outcomes** while recent visitors finish that seven-day window. Learn more in [experiment methodology](https://docs.oursprivacy.com/docs/experimentation/methodology).

Want to optimize for revenue per visitor instead of a conversion rate? Turn on a [value metric](https://docs.oursprivacy.com/docs/experimentation/value-metrics), which averages your goal event's `value` property and can cap outliers with winsorization.

***

## Don't See Your Event? Send It First

If the event you want to optimize for isn't in Ours Privacy yet, send it, and then it becomes available as a goal. These are the same events your team already sends for analytics and destinations, so there's nothing experiment-specific to wire up.

* **From the browser**: fire the event with the Web SDK: `ours('track', 'signup_completed')`. See the [Web SDK reference](https://docs.oursprivacy.com/docs/web-sdk-javascript).
* **Through a tag manager**: send events from Ours Privacy Tag Manager (or Google Tag Manager) without code changes. See [Tag Manager tags](https://docs.oursprivacy.com/docs/tag-manager/tags).
* **From your backend**: track conversions server-side with an [Ingest SDK](https://docs.oursprivacy.com/docs/ingest-overview), useful for purchases or events that complete after the visitor leaves the page.

```javascript
// Browser: fire the goal event when the visitor converts
document.querySelector('#signup-form').addEventListener('submit', () => {
  ours('track', 'signup_completed');
});
```

Once the event is flowing, it shows up as a selectable metric when you create or edit an experiment. For reading and forwarding assignments in your own code, see the [JavaScript SDK conversion events](https://docs.oursprivacy.com/docs/experimentation/javascript-sdk#conversion-events).

***

## Next Steps

* **[Content Experiments](https://docs.oursprivacy.com/docs/experimentation/content-experiments)**: Set up a DOM-modification A/B test and pick its goal
* **[Value Metrics & Winsorization](https://docs.oursprivacy.com/docs/experimentation/value-metrics)**: Optimize for revenue per visitor and cap outliers
* **[Experiment Methodology](https://docs.oursprivacy.com/docs/experimentation/methodology)**: Bayesian, Frequentist, and Sequential analysis
* **[Experiment Settings](https://docs.oursprivacy.com/docs/experimentation/experiment-settings)**: Targeting, traffic allocation, and visitor status
* **[JavaScript SDK](https://docs.oursprivacy.com/docs/experimentation/javascript-sdk#conversion-events)**: Track conversions and forward assignments from your own code
* **[Manage Experiments with AI](https://docs.oursprivacy.com/docs/experimentation/manage-with-ai)**: Create experiments and set the primary metric through Claude or ChatGPT
