WebmasterID logoWebmasterID
Event tracking

Copy interaction event

A copy interaction event records that a user copied text from the page, using the browser copy event. As a UX signal it can hint at which content people find worth saving — code snippets, addresses, prices — without telling you who copied. It is not a native GA4 event; you listen for copy and send a custom event. Crucially you log that a copy happened and where, never the copied text itself.

Partially verified

How it is captured

The browser fires a copy event on the document or an element when the user copies a selection (MDN: Element copy_event). You attach a listener, identify which region or component the selection came from, and emit a custom analytics event with that region as a parameter. You do not read document.getSelection().toString() into analytics — only the fact and the location.

What it can and cannot tell you

Copy signals can indicate content that users treat as a reference: snippets, commands, quotations, contact details. That is genuinely useful for content design. What they cannot tell you is identity or intent beyond the copy itself, and you must not infer those by capturing the copied text. Treat it as a coarse interest signal scoped to a section.

How it appears in analytics and logs

Frequent copies from a block suggest high practical value in that content — a reference users want to reuse — useful for prioritising or formatting it better.

Diagnostic use case

Learn which sections users copy (snippets, contact details) by sending a custom event on the copy event, scoped to a region rather than the copied string.

What WebmasterID can help detect

WebmasterID can capture a copy signal as a labelled custom event tied to a content region, storing the label, not the clipboard contents.

Common mistakes

Privacy and accuracy notes

Record the location or element copied from, never the copied text — copied content can contain personal data. The copy event should carry a region label only.

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.