---
title: "Events and the event registry"
description: "How Togo records the event and property names your code sends, exactly as sent, how to merge two names for one thing, and what defining an event adds."
canonical: "https://www-stage.togohq.ai/docs/concepts/events"
applies_to: "Every Togo SDK and the MCP server"
updated: "2026-11-24T00:00:00Z"
---

# Events and the event registry

How Togo records the event and property names your code sends, exactly as sent, how to merge two names for one thing, and what defining an event adds.

## Traffic decides which events exist

The first time Togo processes an event name, it records it in your project's **event registry**,
and from then on that event can be queried, with every property it was sent with — so nothing your
code sends is lost while you define it. An event the code stops sending stays in the registry with the
date it was last seen.

## Names are exactly as sent

An event's name is the string your code sends, and Togo stores, shows and queries it exactly as
sent — `Sign Up` stays `Sign Up` in your data, in the Event Registry, in charts and in every MCP
tool. There is no second name to learn.

Names are exact. `Sign Up` and `sign up` are two events until you merge them, and the registry
marks the second as looking like the first, so a duplicate does not go unnoticed. Nothing is merged
silently. A name an agent or a chart uses that the registry does not know is refused with the
closest names, never answered with zero.

## Merging two names for one event

When one event has been sent under two names, merge one into the other: the merged name counts
under the one it was merged into from then on, every past answer re-counts with the merged history,
and the merged name still works in a question — the answer says which name it counted under. No
data is rewritten. An agent can do it with
[`merge_events`](/docs/reference/mcp-tools#merge_events). **A merge cannot be undone**, so it asks
you first.

## Property names

A property works the same way. Togo stores each property name exactly as your app sends it —
`Plan Type` stays `Plan Type` — and charts, filters and the AI analyst use that name. The same name
from your website, your server or your app is one property.

A different spelling is a different property until you merge it: `plan type` after `Plan Type` is a
second property, and the registry suggests merging the two. A typo such as `Playn Type` gets no
suggestion. Merge properties on the Event Registry tab, or have an agent do it with
[`merge_properties`](/docs/reference/mcp-tools#merge_properties). As with events, a merge rewrites
no data and cannot be undone.

A property name can be up to 255 characters, with no control characters and no email address in it.
The SDKs report one that breaks those rules through `onError`, and
[`verify_tracking`](/docs/verify) reports it as
[`property_name_invalid`](/docs/reference/event-diagnostics#property_name_invalid).

## Defining an event

**Define every event you rely on.** A definition is how the registry learns what an event
_means_: a description, when it fires, when it does **not** fire, and the properties it carries
with their types. It is what makes your numbers mean the same thing to everyone who reads them, and
what gives your agent the context to answer correctly —
[Event governance](/docs/concepts/governance) explains why it matters and how Togo enforces it.

The install flow defines your events before it writes the tracking code
([Install Togo with your AI agent](/docs/install)). An agent can define or edit one at any time
with [`update_event_definitions`](/docs/reference/mcp-tools#update_event_definitions). Once an event has traffic, a change
that would break code already sending it — a narrower type, a removed allowed value — is refused
with the reason.

Once your plan covers your traffic, turn on **strict governance** so only defined events and
properties reach your reports ([Event governance → Strict governance](/docs/concepts/governance#strict-governance)).

## Naming new events

Keep the names you have — renaming one splits its history in two. For new ones, use lowercase `snake_case` past-tense names, and put a
namespace in a property rather than in the name: `page_viewed` with `surface: "marketing"`, never
`marketing.page_viewed`. Names that start with `$` are reserved for Togo's own events and are
refused.

Property names that start with `$` are reserved too. Togo records the OS, the page, the campaign
and the country on every event itself, and you read them as `$os`, `$path`, `$utm_source` and
`$country` — never as one of your own properties
([Reserved properties](/docs/reference/reserved-properties)). A `$` property your app sends is dropped,
and the rest of the event is kept.

Event and property names are permanent once sent: they can be merged, never renamed. Keep the
spellings your app already uses.
