Track origin of traffic from what part of page in Plausible analytics

The goal is to track things like: how many people clicked on links from what parts of pages? in the ‘related content’ block or ‘popular content’ block or the donate link and

News sites seem to use origin for this.

(I think it would be really cool if this could be done simply by adding classes like origin-footer or origin-main-menu or origin-highlighted with a script extension adding the ?origin=footer to all links within the region with the special class— but first we need a way to see the result of such query parameters at all.)

We would be happy to abuse source or even ref for this but it does not seem that would work? This seems pretty fundamental, so wondering if i’m missing something. Here is what we see in the filters:

Is there a good way forward?

Posted this discussion here: