This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TrackingProcessor | |
{ | |
public static void ProcessProfiles(CurrentInteraction interaction, TrackingField field) | |
{ | |
Assert.ArgumentNotNull(interaction, "interaction"); | |
Assert.ArgumentNotNull(field, "field"); | |
foreach (var profile1 in field.Profiles) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (profile1.Name.Equals("Your Profile Name Here")) | |
{ | |
continue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<processItem> | |
<processor type="Your Namespace with Class,Your Assembly Name" | |
patch:instead="processor[@type='Sitecore.Analytics.Pipelines.ProcessItem.ProcessProfiles, Sitecore.Analytics']"/> | |
</processItem> | |
</pipelines> | |
</sitecore> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void BoostUserPattern(Session userSession, string patternName) | |
{ | |
var patternCards = | |
Context.Database.GetItem("Path or Id of required Profile pattern card container").Children; | |
var patternCard = patternName.ToLower().Equals("register") | |
? patternCards.FirstOrDefault(w => w.Name.ToLower().Equals("register")) | |
: patternCards.FirstOrDefault(w => w.Name.ToLower().Equals("unknown")); | |
if (patternCard == null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ContentFlowKey : DictionaryKey | |
{ | |
/// <summary> | |
/// Gets or sets the timestamp. | |
/// </summary> | |
public DateTime Timestamp { get; set; } | |
/// <summary> | |
/// Gets or sets the contact id. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Analytics.Aggregation.Data.Model; | |
/// <summary> | |
/// The content flow value. | |
/// </summary> | |
public class ContentFlowValue : DictionaryValue | |
{ | |
/// <summary> | |
/// Gets or sets the count. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Analytics.Aggregation.Data.Model; | |
/// <summary> | |
/// The content view. | |
/// </summary> | |
public class ContentFlow : Fact<ContentFlowKey, ContentFlowValue> | |
{ | |
/// <summary> | |
/// Initializes a new instance of the <see cref="ContentFlow"/> class. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ContentFlowAggregationProcessor : AggregationProcessor | |
{ | |
protected override void OnProcess(AggregationPipelineArgs args) | |
{ | |
Assert.ArgumentNotNull(args, "args"); | |
VisitData visit = args.Context.Visit; | |
if (visit.Pages == null || visit.Pages.Count <= 0) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<group groupName="analytics.aggregation"> | |
<pipelines> | |
<interactions> | |
<processor type="YourNamespaceWithClassname, YourAssemblyName" /> | |
</interactions> | |
</pipelines> | |
</group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomCrawler : SitecoreItemCrawler | |
{ | |
protected override bool IsExcludedFromIndex(SitecoreIndexableItem indexable, bool checkLocation = false) | |
{ | |
IDocumentBuilderOptions documentOptions = this.DocumentOptions; | |
Assert.IsNotNull(documentOptions, "DocumentOptions"); | |
Item item = indexable.Item; | |
Assert.ArgumentNotNull(item, "item"); | |
if (item == null) |