question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

distinguish 'consequental' clicks (links etc.) vs. clicks/touches on blank space

See original GitHub issue

At the moment, the rrweb MouseInteraction events record a Click with a x/y co-ordinate but without reference to the underlying event that was clicked upon. This could be retrieved during playback by calling elementFromPoint after the event is executed, but for my usecase — labelling/describing the clicks on the timeline — this is too late. (I haven’t tested whether elementFromPoint works or is accurate during playback — the pointer-events:none style on the rrweb container may hamper it).

Identifying the element would be great; it would also be great if we could identify whether the click/touch results in a page load (click on a link) or triggers some other javascript action (e.g. a modal popup) There’s also situations where e.g. a click on a link opens the link in a new background tab, so recording which meta keys are depressed would also be useful. I’m not sure if these could be teased out, so I guess identifying the element and including it in the event would be a great first step.

I should be able to get around to implementing this but it’s not high priority at the moment so just raising here in case there’s prior work or other things to be concerned about.

Aside: some other commercial offerings label multiple clicks on blank space ‘rage clicks’, but personally I don’t find this useful or accurate.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eoghanmurraycommented, Aug 9, 2021

ML clustering to determine and label types of behavior… not sure that’s in scope of this project

LOL that’s definitely out of scope! The focus here is what can be determined with DOM/browser tech.

I’ve gone ahead and implemented the href recording in #659 — for review.

1reaction
eoghanmurraycommented, Aug 9, 2021

(I deleted the first of your dupe comments … I presume the first one was a draft of the second?!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 3-Click Rule for Navigation Is False
The 3-click rule is a persistent, unofficial heuristic that says that no page should take more than 3 clicks (or taps on a...
Read more >
When a Click is Not Just a Click | CSS-Tricks
How do we distinguish between different types of clicks? That's what we're diving into! First things first. The <button> element, as described ...
Read more >
Consumer Click Behavior at a Search Engine
The authors study consumers' click behavior on organic and sponsored links after a keyword search on an Internet search engine.
Read more >
What's the Difference between "Clicks(all)" and "Link clicks?"
This is a very common question from our customers. We typically separate “ Clicks (all)” and “ Link clicks ” in our reporting,...
Read more >
Processing Banner Requisitions
Type in the word “NEXT” (with no quotes or spaces before or after) to command Banner to assign a requisition number. Then click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found