Skip to main content

Documentation Index

Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Button click tracking

Revlytics automatically tracks clicks on:
  • <button> elements
  • Elements with role="button"
  • <input type="submit"> and <input type="button">
Each click sends a button_click event with the button’s text content (up to 100 characters).
Elements with a data-revlytics-event attribute are tracked as custom events instead, preventing duplicates.
The click handler walks up to 3 parent levels to find a button element, so clicks on child elements (icons, spans inside buttons) are captured correctly.

Form submission tracking

<form> submit events are automatically tracked with:
FieldDescription
Form IDThe form’s id attribute
Form nameThe form’s name attribute
ActionThe form’s action URL
MethodGET or POST
Field countNumber of form fields

Copy event tracking

When a user copies text on your site (Ctrl+C / Cmd+C), a copy event is sent with:
  • Copied text — Up to 500 characters
  • Text length — Total length of copied text
This is useful for understanding which content users find valuable enough to copy.