·

Écran Large integrates a link tracking script

The site uses a dialog and a button that record every click to an external URL.

Écran Large integrates a link tracking scriptThe video this brief is about

A dialog opens on the page, containing a link identified by the class `.cta`. An event handler `trackClick` captures clicks, whether they come from a primary click or a middle click, and sends the tracking data (`link_url`, `link_text`, `link_domain`, `outbound`). If no destination is set, the button becomes inactive, its `aria-disabled` attribute switches to `true` and an explicit tooltip appears. The script preserves the original body and HTML styles before modifying them, then restores everything when the dialog closes. According to Écran Large, this mechanism ensures precise tracking of user interactions.