half of the original issue description was implemented in https://github.com/matomo-org/matomo/pull/14508
We can create such "Custom Segment" with this rule, but not a goal.
Being able to create Goals based on engagement within a visit will be very valuable for many website owners :+1:
This would be awesome to have. But instead of building new specific goal types, maybe we could let users define Goals as Segments? This would be super flexible and powerful! an issue was recently created for this: https://github.com/matomo-org/matomo/issues/13816
Maybe we could have a set of pre-defined "Goal as segment", that users could create in one click, like "Spent more than X minutes", or "Visited at least X pages".