Track visitors in HubSpot
Last updated: January 18, 2023
Available with any of the following subscriptions, except where noted:
|
HubSpot tracks visitors using browser cookies. Every time a visitor lands on your website, HubSpot will check for an existing tracking cookie. If one does not exist, a cookie will be associated with that visitor and will log every page that person visits moving forward.
There are a few things to be aware of in regards to how HubSpot handles tracking cookies:
- Visitors will be tracked anonymously even before they become contacts. If and when a visitor fills out a form, HubSpot will associate their previous page views based on the tracking cookie. If the email address filled in the form is associated with an existing contact, this visitor will be identified as the contact. This includes contacts that were imported.
- If a visitor deletes their cookies, they will be considered a new visitor and will be assigned a new cookie. However, HubSpot will automatically deduplicate form submissions coming from the same email address, even if different browser cookies were associated with the submissions.
- Since cookies are unique to a browser, if two people share a single computer, their submissions will be associated with the same contact record. This deduplication by cookie ensures that if a contact submits forms on your website using different email addresses, all submissions are associated with a single contact record in HubSpot.
- If you want each form submission from the same browser to create a new contact, toggle the Always create new contact for new email switch on in your form options. This can be useful in specific situations, such as collecting contact details at a trade show on a single device.
Please note: when the Always create new contact for new email setting is turned off, HubSpot will first attempt to associate the submission with an existing contact with the submitted email address. If no contact exists at that email address, HubSpot will recognize and update your contacts based on the cookies in their browsers. This may result in contacts being overwritten if the same form is submitted multiple times from the same device.
- HubSpot does not track unique visitors. This metric is based on user behavior and is not always reliable. A user may clear their cookies, use a different browser, or block cookies. While these page views are still tracked, all of these actions will count toward multiple unique visitors for the same actual visitor.
- HubSpot will attribute page views to a contact if the contact clicks a link in a tracked marketing email which directs to a page with the HubSpot tracking code installed.
- The HubSpot tracking code will make asynchronous requests to several HubSpot domains, such as track.hubspot.com and forms.hubspot.com. HubSpot serves these scripts on multiple domains to decrease the chance of any single script failing to load, which can occur if a visitor is using a browser extension that blocks some HubSpot domains.
- The Tracking Code API can also be used to track visitors in HubSpot.
- In marketing emails, HubSpot will only associate the cookie with an existing contact once. Any subsequent clicks on email links such as in a forwarded email will assign a temporary identity to the cookie. The contact must then submit a form, or enter their information via another method for HubSpot to identify them and associate the cookie with their record.
Related content
-
Cookies set in a visitor's browser by HubSpot
If you use HubSpot to host your website or installed the HubSpot tracking code, HubSpot sets a number of...
Knowledge Base -
Customize your cookie tracking settings and consent banner
Super Admins and users with permission to edit website settings can customize visitor cookie tracking and...
Knowledge Base -
Install and use the HubSpot WordPress plugin
The HubSpot All-In-One Marketing – Forms, Popups, Live Chat WordPress plugin allows you to easily connect...
Knowledge Base