How automatic click tracking works
The tracker listens to clicks on the whole page and classifies the closest meaningful element:
| Event | When |
|---|---|
header_link_click | Links inside <header> / role="banner" |
footer_link_click | Links inside <footer> / role="contentinfo" |
menu_click | Links/toggles inside <nav>, menus and menubars |
navigation_dropdown_click | Items inside dropdown menus |
internal_link_click / external_link_click | Any other link, by destination domain |
cta_click | Buttons/links with CTA classes or text like "Get Started", "Buy now", "Sign up" |
button_click, icon_click, image_click, card_click | Other buttons, icon-only buttons, images and cards |
download_click + file_download | Links with download or file extensions (pdf, zip, docx, xlsx…) |
tab_change, accordion_open, accordion_close | role="tab", <details>, aria-expanded toggles |
modal_open/modal_close, popup_displayed/popup_interaction/popup_cta_click/popup_closed | Dialogs, modals and popups appearing/disappearing and clicks inside them |
video_play, video_pause, video_complete, video_interaction | HTML5 video/audio and embedded players |
Captured for every click
Event name, element name (from data-qar-name, aria-label, visible text, title or alt), button/link text, element ID, CSS class, element type, parent element, nearest heading, page name and URL, previous page URL, destination URL (links), timestamp, session ID, anonymous visitor ID, site ID, device type, browser and OS.
Name elements explicitly with data-qar-name="Pricing CTA". Exclude anything with data-qar-ignore or with excluded CSS selectors in site settings.
Page and scroll events
page_view, page_exit (with time on page and max scroll), page_visibility_change, spa_route_change, browser_back, browser_forward, and scroll_10, scroll_25, scroll_30, scroll_50, scroll_75, scroll_90, scroll_100 once per page.