HubSpot tracks visitors using browser cookies. Every time a visitor lands on your website, HubSpot will check for the presence of an existing tracking cookie. If one does not exist, HubSpot spins up a unique cookie for 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 a visitor deletes his or her cookies, he or she 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 multiple forms on your website using different email addresses, all submissions will be associated with a single record in HubSpot since they are all from the same contact. Keep in mind that if you submit multiple test submissions from one browser with different email addresses, these submissions will overwrite each other on a single contact record in HubSpot due to the common tracking cookie. The best way to test submissions, if you don't want them to be associated with the same contact, is to test using the private browsing mode of your web browser.
HubSpot will also attribute visits 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. Lastly, the Tracking Code API can also be used to track visitors in HubSpot.