{"title":"File View","description":"When a user views a file.","_alerts":[{"variant":"note","message":"In most situations, you won't be able to measure a file view - unless it is embedded into a page via a viewer or iframe."}],"type":"object","allOf":[{"properties":{"event":{"title":"Event Name","const":"file_view"}},"required":["event"]},{"title":"File Properties","description":"These properties apply to all `file_*` events.","type":"object","definitions":{"file_name":{"type":"string","title":"File Name","description":"The name of the file (including the file extension).","example":"YYYY-MM-DD_eBook-GA4-Audience-Cheat-Sheet.pdf"},"file_extension":{"type":"string","title":"File Extension","description":"The file extension of the file. This can be useful for sites with many types of downloadable files.","example":"pdf"}},"required":["file_name"]}]}