WebmasterID logoWebmasterID
Event tracking

Print intent event

A print intent event records that a user printed (or opened the print dialog for) a page, using the browser beforeprint and afterprint events. As a UX signal it suggests reference-grade content people want offline — recipes, tickets, instructions. It is not a native GA4 event; you listen and send a custom event. It carries only the page or section context, never anything identifying about the visitor.

Partially verified

How it is detected

Browsers fire a beforeprint event when printing is requested and afterprint when the dialog closes (MDN: Window beforeprint_event). You attach listeners and emit a custom analytics event — typically on beforeprint — with the page path or section as a parameter. matchMedia('print') is an alternative detection path for the same intent.

Why the signal is useful

Printing implies a user wants the content away from the screen: directions, a confirmation, a reference table. Pages with notable print activity are good candidates for a dedicated print stylesheet, a 'download PDF' option, or a layout that drops navigation chrome when printed. The signal is coarse and anonymous, which is exactly what you want for a content-design cue.

How it appears in analytics and logs

Print signals concentrated on certain pages indicate content used as a physical reference — a cue to provide a clean print stylesheet or downloadable version.

Diagnostic use case

Identify pages users print for offline use by emitting a custom event on beforeprint, so you can offer print-friendly layouts or PDFs for those pages.

What WebmasterID can help detect

WebmasterID can record a print signal as a labelled custom event keyed to the page, helping you find print-heavy content without profiling visitors.

Common mistakes

Privacy and accuracy notes

A print event needs only page context. It reveals nothing identifying and you should keep it that way — no user identity, no document contents in the event.

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.