Setting up VisitorGroups programmatically




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?



Sep 13, 2011 14:10


I would start by taking a look at the Developing Custom Visitor Group Criteria tech note
For an example based on EPiServer roles, take a look at More custom Visitor Group criteria: Role

Hopefully this will give you some information :)


Sep 13, 2011 14:44


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: 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?


Feb 28, 2012 15:09
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.