statify icon indicating copy to clipboard operation
statify copied to clipboard

Delayed Javascript execution

Open Zodiac1978 opened this issue 6 years ago • 2 comments

Reported via Twitter: https://twitter.com/e_demonki/status/1050707047057158149

ich lasse das Script von Statify erst laufen nachdem gescrollt und 10 wahlweise 30 Sekunden vergangen sind. So weiß ich, dass auch ein bisschen gelesen wurde... :)

Is this something we should explore?

Zodiac1978 avatar Jan 01 '19 16:01 Zodiac1978

For JS tracking a delay would be easy to add, just another parameter to the JS arguments and wrap the call into a setTimeout block. Adding a "scroll" event listener is not much magic either. So far for the technical point...

Timeout seems legit to me. It adds another filtering layer for "real" users (assuming bots don't stay on a single page for 10s) and potentially removes manual search or skimming. Might be worth the effort.

For scroll-detection however I'm not convinced. Not applicatble for short pages (while "short" potentially means a whole lot of text on reasonably sized desktop monitors).

Finally if both would be added, there must be a clear decision when to track. After scrolling OR or AND timeout? Is scroll-detection without timeout a reasonable use-case?

stklcode avatar Jan 02 '19 18:01 stklcode

+1 for the timeout - that's something which we can make configurable (default set to 0 for backwards compatibility).

patrickrobrecht avatar Apr 12 '20 20:04 patrickrobrecht