Skip to content
Analytics Tools

Create visited URL events

Last updated: March 14, 2022

Applies to:

Marketing Hub Enterprise

Visited URL events record when an anonymous visitor or HubSpot contact visits a specific URL on your website.

Visited URL events can be created in two ways:

Once you've created your events, learn how to analyze events in the analytics and reporting tools. You can also create clicked element events, and manually tracked events.

Please note:

  • The instructions in this article are for the new custom behavioral events tool, which replaces the previous behavioral events tool. Any events created in the legacy tool will continue to work, and you can still manage and analyze those events in the legacy tool.
  • Legacy events cannot be migrated to the new events tool. Instead, it's recommended to recreate your legacy events in the new tool, as new custom events provide more flexibility with event properties. For example, with legacy events you'd need to create multiple events to track separate campaigns, but now a single custom behavioral event can track multiple campaigns.

Create visited URL events with the Chrome extension

Install the event Chrome extension

  • In your HubSpot account, click the settings settings icon in the main navigation bar.
  • In the left sidebar menu, navigate to Tracking & analyticsTracking Code.
  • Click Install event chrome extension.
  • Click Download.
  • You'll be redirected to the HubSpot Analytics extension in Google Chrome web store. In the upper right, click Add to Chrome.

  • In the dialog box, click Add extension.
  • Once the extension has been installed, it will appear as an orange sprocket icon sprocket in your Chrome browser toolbar.

Create an event with the event Chrome extension

  • Navigate to a web page with your HubSpot tracking code installed.
  • In your Chrome browser toolbar, click the sprocket sprocket icon.
  • In the dialog box, select Visited URL, then click Next.

  • In the Page URL field, enter the URL that you want to track visits to.
  • In the Name field, enter a name for the event.
  • Click Create event.

HubSpot will then begin to track the event. Learn how to analyze the event in HubSpot.

Create visited URL events in HubSpot

  • In your HubSpot account, navigate to Reports > Analytics Tools.
  • Click Custom Behavioral Events.
  • In the upper right, click Create event.
  • In the right panel, enter a name for your event, then select Visited URL.
  • Click Next.
  • In the Page URL field, enter the URL of the page that you want to track visits to. 

Please note: visited URL events can only be created and tracked on pages that have the HubSpot tracking code installed.

    • You can use wildcard characters in the page URL when creating a visited URL event. This allows you to track your event on a range of pages without explicitly defining each URL.
    • Examples of wildcard combinations that will correctly record event completions for visits include:
      • http://www.*.com/blog
      • http://www.*.com/blog/*
      • http://*
      • http://www.fifthseasonadventure.*/blog
    • Wildcards following a trailing slash will not include the original page URL. For example* will include any pages with subdirectories in the URL beyond, but will not include the page at If the wildcard is entered before the trailing slash, then it will include the original URL. For example,* will include and
  • Click Save to finish creating your visited URL event.

HubSpot will then begin to track the element. Learn how to analyze the event in HubSpot.

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.