I want to trigger a goal programmatically to the website visitor/contact and retrieve this triggered goal during the contact's current visit and in his future visits. I could trigger the goal of using
CurrentPage.Register() method under
Analytics.Tracker API, but how can I retrieve this goal in the same session and future sessions?
Please help. Thanks!
EDIT: It is not clear how to check whether the current contact is a new contact or an existing contact. Looks like
Sitecore.Analytics.Tracker.Current.Contact.IsNew behaves inconsistently