Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enroll visitor in Sitecore Engagement Plan programmatically

I would like to Enroll a Sitecore visitor in a specific state of an engagement plan through code. Can't find how to do this in the documentation.

Anyone?

like image 361
Zooking Avatar asked May 23 '13 00:05

Zooking


1 Answers

Found it through the help of the great Sitecore Support staff.

Sitecore.Analytics.Automation.VisitorManager.AddVisitor(userName, stateId);

You have to reference "Sitecore.Automation.MarketingAutomation.dll" in your project.

like image 64
Zooking Avatar answered Nov 19 '22 21:11

Zooking