/marceloJS

Send event to Google Analytics if someone has read your post

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Measure the number of times an article was read

This script will send an event to Google Analytics indicating that someone has read the current page.

It does that by measuring if the user scrolled for more than 75% of the page and stayed for longer than the time it takes to read the article.