Visitor Monitor · Staff guide

Goals and events

Count sign-ups, purchases, bids or visits to a thank-you page, and see what share of visits reach them

A goal is something you want visitors to do. Monitor counts how many visits reached each goal and their conversion rate: those visits as a share of all visits in the chosen dates. Goals are on the Analytics page (Monitor → Analytics). Adding or removing one needs monitor.manage.

Add a goal

  1. On the Analytics page, click Add goal in the Goals card.
  2. Choose the kind:
    • Custom event: type the event's name, for example signup. The box suggests the events your site already sends.
    • Page visit: type the page's path, for example /thank-you. Use * for any text: /thank-you* also counts /thank-you/order-42, and /blog/* counts every blog post.
  3. Optionally give it a name for the reports, and click Save.

Goals apply to past data too: a new goal immediately shows the visits that already reached it in the chosen dates. Removing a goal keeps its events.

Events sent for you

Event When Value
signup Someone creates an account on the sign-up page
purchase An invoice is paid in full The invoice total and currency
bid A bid is placed in a live auction ring The bid amount

Each event is tied to the visit that led to it, so its source and campaign show which traffic converts. Events with a value (purchases) show their total on the goal.

Events you send yourself, but haven't made a goal, are listed under Other events in the Goals card. Download any of them with CSV.

Send your own events from the site

On any page of your site, call:

window.monitorTracker.track('Newsletter', { plan: 'free' })
  • The name: letters, digits, spaces and _ . : -, up to 120 characters.
  • The details (optional): up to 20 simple values (text, numbers, yes/no). Never put names, email addresses or other personal details in them: staff can see them on reports.
  • Nothing is sent for visitors Monitor doesn't count (bots, excluded staff or addresses, or before consent).

For developers: events from a module

Any module can send an event from the server without depending on Monitor; it does nothing when Monitor is off:

import { trackEvent } from '#services/analytics_events'

await trackEvent({ name: 'order_placed', userId: user.id, value: 42.5, currency: 'USD', ctx })

Pass the request's context (ctx) when there is one, so the event joins the visitor's visit. Without it, the event joins the user's most recent visit if it is still open.