How to define a goal within Matomo for people visiting more than 2 pages?

Published: 11 July 2024
on channel: Ronan Chardonneau
23
1

Here are the prompts i used:
1st prompt - i would like to store within a cookie the number of times a visitor is watching the pages of a website. For example if a visitor is having a look at 3 web pages of a website, i want the value 3 to be registered. The cookie has to be session based.
2nd prompt - awesome, now, i want that if the number of pageviews is above 2 that it fires this line of code _paq.push(['trackGoal', 1]);
3rd prompt - the cookie has to be a session cookie, so to say, it gets reset when the browser is getting closed


Watch video How to define a goal within Matomo for people visiting more than 2 pages? online without registration, duration hours minute second in high quality. This video was added by user Ronan Chardonneau 11 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 once and liked it people.