06Click tracking · Paid plans
Click tracking: measure clicks without writing code
On any paid plan the script also records clicks on its own. Mark an element with data-metryo-event and it is tracked by name; outbound links and file downloads are detected with no markup at all.
Click tracking is available from the Starter plan upwards. On the Free plan these events are discarded and never count towards your monthly allowance — metryo.event() keeps working on every plan.
Naming a click
index.html
Detected automatically
- Outbound link — any link to a different hostname, with the destination domain, its path and the link text as properties. The query string is never sent: it routinely carries session tokens and email addresses.
- File download — links ending in a document, archive, installer or media extension, with the file name attached.
- In-page anchors and mailto: or tel: links are skipped, so they never consume your allowance.
Turning detection off
head.html