Skip to content

Instantly share code, notes, and snippets.

@jamielittle
Created March 12, 2015 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamielittle/4a3462bafc0da9f4d95a to your computer and use it in GitHub Desktop.
Save jamielittle/4a3462bafc0da9f4d95a to your computer and use it in GitHub Desktop.
Item thisItem = Sitecore.Context.Data.Database.GetItem(ContactAcquisitionOutcome);
Sitecore.Analytics.Data.Items.OutcomeDefinitionItem outcomeItem = new OutcomeDefinitionItem(thisItem);
PageEventItem pageEventItem = new PageEventItem(outcomeItem);
PageEventData pageEventData = Sitecore.Analytics.Tracker.Current.CurrentPage.Register(pageEventItem);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment