Calculate custom metric: returning visit to a certain URL

Hi team,

we would like to calculate returning visits to a certain url, so the number of visits that are preceded with another visit within (say) 7 days to the exact same url. The farthest we could get was calculating the number of visits while filtering for the url and that the last visit was within 7 days. However, this filter considers each visit within the last 7 days not just the ones that included the given url.
How could we calculate such a metric?

Thanks in advance.

Hi @divenyijanos,

A reply was sent to your request through the support channel. Cohorts plugin maybe useful in this use case https://matomo.org/docs/cohorts/