Comment by sdoering
13 hours ago
If you mean capturing click metadata (coordinates, timestamps, target elements) rather than actual pixel recording - yes, that's what tools like Hotjar/FullStory do. They record DOM mutations + interaction events and replay them.
For your own implementation, document-level event listeners work, though cross-origin iframes are off-limits due to same-origin policy.
yes but i want to capture it without injecting my own js. hotjar etc. need to inject their own js and than they can add mutation observer. I want it for cross-origin frames but after taking users permission similar to screen recording, i guess thats not possible locally.
> I want it for cross-origin frames but after taking users permission
Sadly not to my knowledge.