Skip to content
Analytics Tools

Create visited URL events

Last updated: June 3, 2021

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 icon settings 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.

    chrome-extension-create-visited-url-event
  • 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.
     create-custom-visited-url-event
  • 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.fifthseasonadventure.com/*
      • http://www.fifthseasonadventure.com/blog/*
      • http://www.*.com/blog
      • http://www.*.com/blog/*
      • http://*.fifthseasonadventure.com
      • http://www.fifthseasonadventure.*/blog
    • Wildcards following a trailing slash will not include the original page URL. For example http://myblog.com/* will include any pages with subdirectories in the URL beyond myblog.com/, but will not include the page at myblog.com. If the wildcard is entered before the trailing slash, then it will include the original URL. For example, myblog.com* will include myblog.com/my-article and myblog.com.
  • 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.