Touchstart event logging non-existent clicks

Created on 13 January 2016, almost 9 years ago
Updated 6 July 2023, over 1 year ago

Hi, is there a valid reason to track clicks on outbound links with "mousedown keyup touchstart"? Using touchstart actually logs every swipe across a link as a click, which makes statistics quite inaccurate. Many people will swipe across a page, maybe "touchstart" over a link, but won't click the link.

I have read other discussions (e. g. https://www.drupal.org/node/2498727 β†’ and https://www.drupal.org/node/1580144 β†’ ), but I still don't see justification for using touchstart. I understand that there used to be some problems with using "click", but with browsers regularly updated it probably doesn't affect stats nearly as much as touchstart does.

If I'm not missing something obvious, this method of tracking clicks on outbound links is a major problem.

Steps to reproduce:

1. Create a link on a page.

2. Open the page that contains that link (e. g. in Android's mobile browser).

3. Swipe down, with your finger touching the link when you swipe down, i. e. that link is the point that your finger touches when you swipe down.

4. A click is registered, although you didn't really click on the link and you never even intended to do it.

You can also see collect gif being loaded in network tab when you do that.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    With the sunset of legacy google analytics, the 8.x-3.x module is now unsupported. If this is still an issue with the 4.x version, please file a new issue in the queue.

Production build 0.71.5 2024