November Happy Hour will be moved to Thursday December 5th.

Custom Visitor group based campaign

Vote:
 

Hi Team,

I am using a custom cookie-based visitor group for promotion. For a situation like below how to handle that?

1.visitor a group G- campaign gold

2.visitor a group S- campaign silver

3.visitor a group P- campaign platinum

If using below method I will check cookie contains valid data or not. how the campaign is for a specific visitor group?

 public class CookieExistsCriterion : CriterionBase<CookieExistsCriterionSettings>
    {

        public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
        {
       return IsValidcookievalue() ;
        }
}

Note: I am not able to add a user in visitor group.

Please help me out.

#200783
Jan 24, 2019 17:47
Vote:
 

I'm not sure exactly what you are asking about, but have a look at this - it may help https://www.david-tec.com/2015/09/cookie-visitor-group-criteria-for-episerver/ 

#200790
Jan 24, 2019 23:15
Vote:
 

Thanks Marcus,

The above link is useful when we use only one custom visitor group in the campaigns. It will not suitable for multiple campaigns with multiple visitor groups. so I moved to the custom promotion and achieved my requirement.

#200855
Jan 29, 2019 8:40
* 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.