Sometimes randomness can be a good thing :-) This role will randomly decide if the current user is in the role or not. Can be useful for A/B testing or to decide whether you want to bore your users with a pop-up evaluation form, banner ad or similar.
Register it under <virtualRoles> in web.config like this:
<add name="RandomRole" type="EPiServer.Research.VirtualRoles.RandomRole, VirtualRolesSamplePack" pctinrole="80"/>

Parameter here is pctinrole and it’ll set the percentage of times it should return that the user is in the role.

Last edited Nov 2, 2009 at 7:40 PM by AllanThraen, version 1

Comments

No comments yet.