I want to store visitors visited page information into a database. I learned that episerver inbuilt VisitedPage criteria saves visited page information in HttpContext only for that user session.
So, I want to create Custom Visitor group criteria similar to inbuilt episerver criteria except that it will store information in database.
Can I modify or extend the existing episerver criteria to store info in database or how can I create custom criteria for this?
You can follow this guide for building your own custom criterias
I would start by checking if you can inherit from the current VisitedPage criteria / check it out with dotPeek or similar.
If you are only interested of the statistics part I would recommend using Google Analytics addon instead
You can check out