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

Опубликовано: 11 Июль 2024
на канале: 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