Skip to content

Add single click copy button for code snippets #20607

@michalkleiner

Description

@michalkleiner

Summary

At the moment the code snippets (tracking code or tag manager code) get highlighted for copying and then the user needs to either use the keyboard or mouse to actually copy the snippet into the clipboard before it can be used.

This enhancement would add a single click copy button which would automatically copy the snippet into the clipboard. The current highlight all behaviour would be retained.

Example of the button within GitHub code snippets:
Screenshot 2023-04-20 at 2 30 01 PM

Metadata

Metadata

Assignees

Labels

EnhancementFor new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions