WebmasterID logoWebmasterID
Analytics dimensions

File extension dimension

File extension is the dimension that records the suffix of a downloaded file — pdf, docx, zip and similar. GA4 enhanced measurement reads it as file_extension when a clicked link's URL ends in a recognised extension, firing a file_download event. It is the field for analysing downloads by format rather than by individual file, but it only carries values for extensions on GA4's default watched list.

Verified against primary sources

What this means

When enhanced measurement detects a download, it records file_extension — the part of the URL after the final dot. The file extension dimension lets you group downloads by type, which is more useful than file_name when you want format trends rather than specific assets.

This answers questions like whether your audience prefers PDFs or editable documents.

Why some formats never appear

Detection is driven by a fixed default list of extensions (including pdf, doc, docx, xls, xlsx, ppt, pptx, zip and a few more). A download with an extension outside that list, or none at all, does not fire a file_download event, so its format is absent from the dimension entirely.

To measure other formats, send an explicit file_download or custom event that sets the extension yourself.

How it appears in analytics and logs

A file extension value is the suffix of a downloaded file's URL. Missing formats mean the extension is not on GA4's default list, so its downloads never fired a file_download event.

Diagnostic use case

Use file extension to compare download demand by format — say PDFs versus spreadsheets — after confirming each format is on GA4's recognised extension list.

What WebmasterID can help detect

WebmasterID can log downloads with their format as first-party events, so format-level demand is measurable without third-party scripts.

Common mistakes

Privacy and accuracy notes

File extension records a format, not a person. WebmasterID records download formats as first-party events without identifying the downloader.

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.