Tracking custom events

Last updated: December 3, 2026

Overview

Custom events let you track specific shopper interactions on your ecommerce site, such as clicks on a size guide, a promo banner, or a newsletter sign-up, and measure them in Dashboards. You can use them to answer questions that standard metrics don’t cover, like how often shoppers open a product video or whether a new free-shipping banner gets clicked.

Noibu supports two kinds of custom events:

  • Visually labelled events: Name a clickable element on your site using a visual, point-and-click tool. No code is required. Because Noibu already records every click on your site, a new label also counts matching clicks from before you created it.

  • Code-based events: Send an event from your site’s code using the Noibu SDK track() function. Use code-based events for interactions that aren’t clicks, or when you want to attach extra data, such as a plan name or a sign-up source.

Both kinds appear in the Custom Events category in Dashboards and can be queried through the Noibu MCP server.

Additionally, Noibu automatically tracks key ecommerce events, such as PLP visits, add-to-carts, shipping selection, and more. Learn more about ecommerce event data.


Choosing between visually labelled events and code-based events

Visually labelled events

Code-based events

What it tracks

Clicks on a specific element

Any interaction your code can detect

How you set it up

Point-and-click in Noibu, no code

track() call added to your site’s code

Who can set it up

Anyone with access to Noibu

A developer, or an AI assistant such as Claude with access to your codebase

Historical data

Counts matching clicks Noibu already recorded, before the label existed

Counts events from when the track() call goes live

Extra data

Not supported

Any JSON-serializable data you pass with the event

If the interaction is a click on a visible element, start with a visually labelled event. You can measure it immediately, including past activity, without a code change.

Visually labelled events

How visually labelled events work

Noibu records every click within a shopper session. A visually labelled event gives a name, such as “Size guide click”, to a specific element, identified by its CSS selector. Noibu then counts every recorded click that matches that element, including clicks that happened before you created the label.

This means you don’t need to plan your tracking in advance. If a question comes up after a campaign launches or a page changes, you can label the element and see its full click history. A visually labelled event counts every matching click Noibu has recorded on your site since February 2026, or since Noibu was deployed, if later.

Creating a visually labelled event

You can create a visually labelled event from the chart builder in Dashboards or from the Custom events page in Settings.

  1. Open the chart builder in Dashboards and select the Custom Events metric. Then click Create visually labeled event. Alternatively, go to the Custom events page in Settings and click Add event.

  2. A message explains that Noibu will open your website in a new browser tab. Continue to open it.

  3. In the new tab, your website loads with a Noibu widget overlay. Hold Ctrl (Windows) or Command (Mac) and click the element you want to track.

  4. The widget shows the CSS selector for the element you selected. Enter a name for the label.

  5. Choose where to apply the label: - This page only - All pages - Specific page groups

  6. Click Add Label to save the label, or Discard to cancel it.

  7. Repeat steps 3–6 for any other elements on the page you want to track.

  8. Click Save and Finish.

After you save, Noibu generates a new chart for the visually labelled event. You can add it to a dashboard, use it in other charts, and query it through the Noibu MCP server.

Code-based events

How code-based events work

A code-based event is sent from your site’s code by calling the Noibu JavaScript SDK track() function. Each event has a name and an optional data object. Noibu stores both with the session. In Dashboards, you can chart how often the event happens. To analyze the event by the data you sent, such as sign-ups by placement, ask Claude through the Noibu MCP server.

Code-based events are recorded from the moment your track() call is live on your site.

To set up code-based events, see Sending custom events with the track function.

Implementing code-based events with Claude

You don’t need to write the code yourself. If Claude, or another AI coding assistant, has access to your site’s codebase and the Noibu MCP server, you can describe the interaction you want to track and ask it to add the track() call. If your code repository is connected, it can also prepare the change for deployment.

Example prompt: “Add a Noibu custom event called size_guide_opened that fires when a shopper opens the size guide on a product page. Include the product ID.”

If you already track events in another tool, such as Google Analytics 4 (GA4) or Mixpanel, you can ask Claude to add a matching track() call next to each existing event so the same events are available in Noibu. For GA4, see Capturing GA4 events with the track function.

Viewing your events

Go to the Custom events page in Settings to see every custom event configured for your domain, including visually labelled events and code-based events. From here, you can click Add event to create a new visually labelled event.

To chart an event, open the chart builder in Dashboards and select it under the Custom Events metric category. Learn more in Dashboards.

Related articles