Glossary
analytics

Custom Event

Definition

A user-defined event that tracks specific interactions unique to your website. Goes beyond automatic tracking to capture what matters to your business.

What is a Custom Event?

A custom event is a tracking event you define yourself to measure interactions specific to your website. While analytics platforms automatically track standard events like page views, custom events let you track actions that matter to your business.

Examples: pricing calculator usage, chat widget opens, specific button clicks, quiz completions, or custom form interactions.

Why Custom Events Matter

Every business has unique interactions worth measuring. A solicitor's site might need to track which practice area pages drive enquiries. An e-commerce site might track product configurator usage. Default tracking won't capture these – you need custom events.

Custom Events in GA4

GA4 supports three event types:

Automatically Collected

Page views, first visits, session starts. You get these without setup.

Enhanced Measurement

Scrolls, outbound clicks, site search, video engagement, file downloads. Enable in settings.

Custom Events

Everything else. You define the event name, parameters, and tracking logic.

Creating Custom Events

Via Google Tag Manager (Recommended)

  1. Define a trigger (button click, form submit, scroll depth)
  2. Create a GA4 Event tag
  3. Set the event name and any parameters
  4. Publish your container

Via Code

Push events to the data layer or call gtag() directly. Requires developer involvement.

Via GA4 Interface

Create new events based on existing events with modified conditions. Limited but useful for simple adjustments.

Event Parameters

Custom events can include parameters for additional context:

  • form_name: "contact_form"
  • button_text: "Get Quote"
  • video_title: "Product Demo"

Parameters make events more useful for analysis.

Naming Conventions

Stick to GA4's recommended format:

  • Lowercase with underscores (button_click, not buttonClick)
  • Descriptive but concise
  • Consistent across your site

Want to Learn More?

Check out our in-depth guides on web design, SEO, and digital marketing.