
Écran Large adds click tracking to its overlay
The site includes a script that tracks interactions on the subscription dialog.
The video this brief is aboutThe displayed code shows that a `<dialog>` element is used to offer a subscription. A `.cta` link receives an event listener that, on each click, triggers the `google_preferred_source_click` tracking with the URL, the link text and the domain. If no destination is defined, the link is disabled and given an explanatory title. The script then restores the body's overflow and position styles and scrolls the page back to its previous state. According to Écran Large, these measures aim to ensure a smooth user experience while collecting navigation data.