The exit link may not be the best dimension to collect the data about the onpage interactions. If you send this data from the page, consider switching to custom links.
To save server calls, you may want to store the engagement data in local storage and append it to the page view server call on next page. In addition to that, fire an s.tl() call before the unload event if the visitor navigates to another domain (check the link destination URL, href value), and reset the local storage .
P.S.: the exit links are used to track clicks on the links referring to third-party resources (the sites that are not tracked in the report suite the page views are collected to).
Hi Andrey, can you please let me know on how to fire an s.tl() call before the unload event if the visitor navigates to another domain (check the link destination URL, href value)? Have you tried this? As per challenges faced by me and leaned that it can't be done. The new location is private/sensitive information. Nobody wants you to know which sites they visit when they leave your site.