Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

What is the "Direct Access" traffic source?

Direct access is a natural traffic source. It groups visits where Piano Analytics can't reliably identify a previous page (the referrer), or where the referrer is your own site. Most often, it's a visitor who types your URL directly or opens it from a bookmark. More broadly, any access that doesn't keep a trace of the previous page is counted as Direct access, for example from some email software, some redirections, or other contexts that don't pass referrer information.

How a visit becomes Direct access

Piano Analytics uses the browser referrer to determine the traffic source. It reads the referrer on the first page.display of the visit and reflects it in properties such as previous_url. Then:

  • if the referrer is empty, because no previous URL can be retrieved, the visit is Direct access (out of site).

  • if the referrer is present but its domain matches your own site, the visit is Direct access (continuity of visit).

Technical constraints can also prevent the referrer from being collected, which increases Direct access. These include browser and app behaviors and privacy or security rules, such as redirects, links with rel="noreferrer", and strict referrer policies (for example strict-origin-when-cross-origin).

Types of Direct access

Type

The referrer is

Typical cause

Direct access (continuity of visit)

A page of your own site

A visitor comes back after 30 minutes of inactivity (default value). A new visit is created when they trigger activity again, for example by refreshing or navigating, and the referrer is a page on your own domain.

Direct access
(out of site)

Empty

The visitor types the URL directly, uses a bookmark, or clicks a link from an environment that doesn't pass referrer information (some email clients, some applications, certain redirects).

Direct access (local)

A page hosted on the visitor's local hard drive

Testing or development, for example a file:///... page or a referrer containing localhost.

In reports, an out of site visit often has an empty referrer or previous_url, commonly shown as N/A in "Source - URL".

Attribution within a visit

Piano Analytics attributes a visit to the first source it encounters. If a visitor starts a visit as Direct access, then clicks a tagged campaign link in the same visit, the visit stays attributed to Direct access.

Troubleshooting

If you see an unusual spike in Direct access, the common causes are:

  • Referrer not transmitted: redirects, referrer policies, rel="noreferrer", in-app browsers, or external applications that open links without referrer information.

  • Tagging issues: a missing or misfiring tag on landing pages prevents correct source attribution.

  • Recently added third-party tools: chat widgets, consent or privacy tools, and similar tools can affect navigation, redirects or referrer behavior.

  • Exempt mode: when it applies, marketing campaign attribution can be reduced if campaign information isn't collected in that mode. If no other referrer is present, the traffic ends up in Direct access.

  • Bot attacks: bots usually don't have a referrer.

Last updated: