Setting up HubSpot custom events involves defining specific user actions, sending that data via tracking code or API, and then building custom reports. This allows marketers to track granular interactions beyond page views, enabling them to prove ROI and refine complex strategies.
Marketers like you need precise tracking for sophisticated campaigns. Standard metrics like page views and form submissions don't tell the whole story. To truly understand user behavior and prove the value of your efforts, you need to go deeper. This is where mastering how to use custom events for better reporting in HubSpot becomes a game-changer.
This guide will provide a comprehensive walkthrough of HubSpot's custom events, covering:
Think of standard HubSpot events as the pre-built analytics that come out of the box—things like form submissions, email opens, and page views. They are essential, but often generic.
Custom events are unique interactions that you define and track yourself. They represent the specific, high-value actions a user takes on your website or within your app that signal intent, engagement, or progress through the customer journey.
The key difference is control. While standard events are predefined by HubSpot, custom events are tailor-made for your business model. This capability is available on Marketing Hub, Sales Hub, Service Hub, and Operations Hub Enterprise plans.
The foundation of how to use custom events for better reporting in HubSpot lies in a thoughtful setup process.
video-played, pricing-calculator-used).video-played event, you might add properties to capture more detail.
video_title (String): The name of the video.watch_duration_seconds (Number): How long the user watched.video_category (Enumeration): The type of video (e.g., "Product Demo," "Case Study").By defining specific properties, you give yourself the raw materials needed to build highly segmented and insightful reports later on.
Once an event is defined in HubSpot, you need to tell HubSpot when it occurs. There are three primary methods for this.
For Website Interactions: The JavaScript Tracking Code
This is the most common method for tracking actions a user takes in their browser. By adding a small snippet of code to your website, you can trigger an event when a user clicks a button, plays a video, or interacts with a specific module.
var _hsq = window._hsq = window._hsq || [];
_hsq.push(["trackCustomBehavioralEvent", {
name: "pe23985_video_played", // Use the internal name of your event
properties: {
video_title: "Getting Started with Our Product",
watch_duration_seconds: 120
}
}]);
For Server-Side Actions: The HubSpot Events API
Some important actions don't happen in the user's browser. Think of a SaaS subscription upgrade or an integration-triggered action. The Events API allows your server to send this data directly to HubSpot, providing a complete picture of the customer journey. This is a core component of how to use custom events for better reporting in HubSpot for product-led companies.
For Internal Triggers: Using HubSpot Workflows
You can also use HubSpot's own workflow engine to trigger a custom event. For example, when a contact's lifecycle stage changes to "Opportunity," you could trigger an event called deal-created to use in funnel reporting.
Your reports are only as good as the data you put into them. Follow these best practices to ensure your data is clean, consistent, and ready for analysis.
Object-Action (e.g., feature-enabled, demo-requested, ebook-downloaded). This prevents confusion and makes events easy to find in the report builder.ebook_title or webinar_id. This makes your data self-explanatory.This is where your planning pays off. Once data is flowing, you can use HubSpot’s custom report builder to visualize insights that were previously hidden.
The process of how to use custom events for better reporting in HubSpot culminates here:
pricing-page-viewed -> demo-requested -> deal-created. This helps you pinpoint drop-off points in your conversion path.Here are a few real-world examples of how businesses leverage custom events for advanced reporting:
add-to-cart, view-product-category, and begin-checkout. This data can be used to build powerful segmentation and trigger abandoned cart workflows.While incredibly powerful, custom events have a few limitations to keep in mind:
By understanding these constraints, you can design an event strategy that is both effective and sustainable.
A HubSpot custom event is a unique, user-defined interaction that you track on your website or in your app. Unlike standard, pre-built events like page views, custom events are tailor-made for your business model to track specific, high-value actions that signal user intent and engagement. This capability is available on HubSpot Enterprise plans.
What are the main ways to send data to a HubSpot custom event?There are three primary methods to send data for custom events: 1) The JavaScript Tracking Code for tracking user interactions in a web browser, like clicking a button. 2) The HubSpot Events API for sending data from your server for actions that don't happen in the browser, such as a subscription upgrade. 3) HubSpot Workflows to trigger an event based on internal data changes, like a contact's lifecycle stage updating.
Can you use custom events to build a funnel report in HubSpot?Yes, building funnel reports is a key use case for custom events. In HubSpot's custom report builder, you can track how many users complete a sequence of specific events (e.g., pricing-page-viewed -> demo-requested -> deal-created). This allows you to visualize the conversion path and identify exactly where users are dropping off.
To ensure your data is clean and actionable, you should: stick to a consistent naming convention like 'Object-Action' (e.g., video-played), use specific and descriptive property names (e.g., video_title instead of a generic 'name'), and plan your tracking strategy in advance to define what questions you want to answer before implementation.