How is a ‘Visit’ defined in Matomo?
A Visit is defined as a continuous session of user activity, based on available identification methods such as Matomo’s first-party cookies or User ID.
Session timeouts, time zone boundaries, and cookie settings directly influence how visits and visitors are counted. By default, Matomo starts a new visit when:
- A visitor performs an action more than 30 minutes after their last tracked interaction.
- A visitor arrives through a new campaign source, including updated campaign parameters or advertising click IDs.
- A visitor continues browsing after midnight in the website’s configured time zone. If a visitor remains active across midnight, Matomo records a new visit for the new day, even if the inactivity timeout has not been reached.
How visits and visitors are counted
- A Unique Visitor who returns several times in one day can generate multiple visits (after every session timeout).
- During a visitor’s first recorded session, Matomo classifies them as a New Visitor.
- From their second visit (whether it’s on the same day as their first visit, or days or weeks later) they will be tracked as a Returning Visitor, provided the tracking cookies are still in their browser.
- A visit is based on a session of activity on a single device. If a visitor accesses your site from different devices, each session is recorded as a separate visit.
- When cookies are present, Matomo links actions into the same visit unless a timeout, campaign change, or midnight boundary occurs.
- If Matomo cookies are blocked, cleared, or unavailable, Matomo may create a new visit even if the visitor’s activity continues.
Actions tracked during a new visit do not alter the data recorded in previous visits. For example, if a customer adds an item to their cart but does not complete the purchase during the same visit, that visit will be recorded as having an abandoned cart. Even if the visitor returns later and completes the purchase in a new visit, the earlier abandoned cart remains unchanged in reports.
Changing the default Visit timeout
For Matomo Cloud, you can request to change the 30-minute Visit timeout by contacting support.
For Matomo On-Premise, you can change the default timeout by adjusting your config file:
[Tracker]
visit_standard_length = 1800
Why change the Visit timeout?
If your website or app involves longer periods of passive engagement such as reading long-form content, you might increase the timeout to 45 minutes. This ensures that these long but continuous interactions are counted as a single visit. However, with longer timeouts, Matomo may group periods of inactivity into a single visit.
A shorter timeout may result in more visits being recorded for the same visitor. This can be useful for distinguishing separate task-based sessions or analysing frequent user return patterns. Using this approach depends on how you want to interpret and report on user activity.
Note: Custom timeouts may make your data less comparable with industry standards or other analytics tools. Shorter timeouts lead to more visits while longer timeouts reduce visit counts, and will impact metrics like bounce rate and session duration.
View Visitor and Visit counts
Go to Visitors > Overview to see the total number of visits and unique visitors for the selected calendar period.
- You can also use Segments to filter by visitor or visit characteristics depending on your analysis goals.
- In Custom Reports, you can select metrics such as Visits or Unique Visitors to focus your reporting.
See the Glossary of Analytics terms