> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Track a custom event

Analytics records page views and visits for you, but not clicks. A custom event counts one action you care about, such as clicks on your **Book a class** button. [Describe the action](https://converge-enter-documentation.mintlify.site/en/articles/prompting-tips.md) in the project chat and Enter adds the tracking.

## Ask Enter to track the action

**1. Not sure what to track? Ask for ideas**

Ask Enter to review the project and suggest events, and to explain what each teaches you, such as where people drop off. Pick the ones that fit your goals before Enter builds them.

```plaintext theme={null}
Review this project and recommend the most useful tracking events. For each event, explain what user action it measures, when it should trigger, which properties it should include, and how the data would help me improve the product. Do not add tracking until I approve the list.
```

**2. Describe the action you want to track**

In the project chat, tell Enter:

* The button or action, and the page it is on.
* When to send the event, such as on each click.
* Properties that help you compare, such as where the button sits on the page.
* To check existing tracking and reuse an event instead of duplicating it.

Example: count clicks on the **Book a class** button, which appears in the top hero section and in the pricing section.

```plaintext theme={null}
Track clicks on the "Book a class" button as book_class_click. The button appears in the hero and in the pricing section. Add button_location = hero or pricing so I can compare where people click. Check whether this click is already tracked before adding it.
```

Send the request, review Enter's changes, then test the site.

> [!TIP]
>
> **A click is an attempt.** To know how many people actually booked, also track the successful booking, such as booking\_completed, sent only after the booking is saved. Comparing the two shows where people drop off.

## Naming and event types

| Term | Meaning |
| - | - |
| **Default** | Events that are built in. |
| **Custom** | Events you define for your project. A definition does not prove a visitor did the action. |

Use one name per action. If the same button appears in several places, keep one event and add a property such as **button\_location**.

### Step 3 · Test the event

* [ ] Publish your site, note the time, then click **Book a class** once in the hero.
* [ ] Open [**Analytics → Live**](https://converge-enter-documentation.mintlify.site/en/articles/analytics.md), choose a window that includes your test, and find the event.
* [ ] Expand the row and check its page, time, and **button\_location = hero**.
* [ ] Click the pricing-section button too and check that it shows **button\_location = pricing**.
* [ ] Open **Analytics → Events** and check that **Last Triggered** updated.

![Analytics Events list showing First Seen, Last Triggered, and Count columns](https://mintcdn.com/converge-enter-documentation/M67gKYEaJiF8mf9Q/images/enter-help/6.2/events-list.png?fit=max\&auto=format\&n=M67gKYEaJiF8mf9Q\&q=85\&s=8be712cbcffa1f489831d8c8f821e1e4)

The Events list with First Seen, Last Triggered, and Count.

In **Events**, search by name or description and open an event to see its properties. **First Seen** is its first appearance, **Last Triggered** its latest activity, and **Count** the total reported.

You can also ask in the project chat, for example: "How many people clicked Book a class this week, by button location?"

## Limitations

* Deleting a custom definition does not fix a wrong trigger. Past data is kept, but later reports with that event name are rejected.
* The Overview date range does not change the **Count** total in Events.

## Troubleshooting

> [accordion] The event is missing
>
> Make sure you published after Enter added the tracking. Then tell Enter the page, event name, test time, and what you clicked, and ask it to check the event is set up.

> [accordion] No events appear at all
>
> Check that [Analytics collection](https://converge-enter-documentation.mintlify.site/en/articles/enable-and-verify-analytics.md) works. In **Live**, select **All events** and clear the search.

> [accordion] One action makes repeated events
>
> Ask Enter to check for more than one piece of click-tracking code sending the event, then test again.

> [accordion] Several real actions make several events
>
> This is normal. Totals count actions, not unique visitors.

## Common questions

> [accordion] Should repeated placements use one event name or several?
>
> Use one event name for the same action. Add a property such as **button\_location** to compare where the action happened.

> [accordion] What should an event property describe?
>
> Add context that helps you compare the action, such as whether a button was in the hero or pricing section. In **Live**, open the event and check the page, time, and expected property value.

> [accordion] Does one event count equal one visitor?
>
> No. Event totals count reported actions, so one visitor can trigger the same event several times.

> [accordion] What happens to past data if I delete a custom event definition?
>
> Past data is kept, but later reports using that event name are rejected. Deleting the definition does not fix tracking code that sends the wrong event.

## Keep going

**Next: [Read the Analytics dashboard](https://converge-enter-documentation.mintlify.site/en/articles/analytics.md)**\
See events next to traffic.

> [card] [Enable and verify Analytics](https://converge-enter-documentation.mintlify.site/en/articles/enable-and-verify-analytics.md)
>
> Confirm collection works first.

> [card] [Publish your site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)
>
> Put your site online.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.