Identify visits with more than one page view?

How do i identify visits with more than one page view? I will create a JavaScript if rule for this like:

if (page_views > 1) {
// my code.
}

Hi @melbao

Sorry, I don’t understand at which step you want to achieve this? During tracking? In Matomo reports?..

Hi Philippe, more as general. In the moment i test this:

if (document.referrer.includes(window.location.hostname) === true) {
 // my code.
}

But, yes, i have not thought about it enough. After all, no data is sent from the Matomo installation to the webpage with the tracking code. Possible would be to send info by query string, but I don’t like that.