WebmasterID logoWebmasterID
Event tracking

The file_download event

A file_download event records that a visitor clicked a link to a downloadable file — a PDF, document, archive, or media file. Like outbound clicks, downloads escape ordinary page analytics because no new page loads. GA4 enhanced measurement fires file_download automatically for a defined list of file extensions, capturing the link and file type without code.

Verified against primary sources

What this means

file_download fires when a visitor clicks a link whose target matches a downloadable file type. GA4 enhanced measurement recognises a built-in list of extensions (such as pdf, doc, docx, xlsx, zip, and common media types) and fires the event automatically with the link URL, file name, and extension.

Why it matters and its edges

Downloads are invisible to page analytics — the file opens or saves, no page_view occurs. The file_download event recovers that. Its edge is the extension list: a download served by a link that does not end in a recognised extension (for example a generated URL or a streaming endpoint) will not auto-fire and needs a custom event.

How it appears in analytics and logs

A file_download means a download link was clicked. Zero downloads on a resource page can mean the link is not a recognised file type, not that nobody downloads it.

Diagnostic use case

See which documents and assets visitors actually download, so you can measure the reach of PDFs and resources that page analytics never records.

What WebmasterID can help detect

WebmasterID can record downloads as first-party events keyed to the file, so asset reach is measurable without identifying visitors or relying on third-party scripts.

Common mistakes

Privacy and accuracy notes

A file_download records the file path or name and type, not the downloader. Keep the file identity; never attach who requested it. This is a content signal, not a person signal.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.