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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With