As the subject suggests: I would like to set up a visitor group with a set of criterion programmatically and i have no idea where to start. Can anyone point me in the right direction?
I would start by taking a look at the Developing Custom Visitor Group Criteria tech noteFor an example based on EPiServer roles, take a look at More custom Visitor Group criteria: Role
Hopefully this will give you some information :)
In addition to this problem, I am facing problem with visitor groups which is When I added one customised visitor group (to show contents on mobile phones). When i selected the contents to be displayed when criterial meets, it is still showing the contents even criteria is not matching and it is also showing visitor group name on the page. After that, I created another visitor group that only french people can view the page contents Reference: http://tedgustaf.com/en/blog/2011/10/create-new-visitor-group-criterion-in-episerver/ but still problem is the same. It is showing contents even I am browing site from UK and it is also showing visitor group name on page as well. Any suggestion how to solve this problem?