Saturday, 7 March 2015

Sitecore Pipelines - CreateTracker

This post documents Sitecore's CreateTracker pipeline, and is part of a series providing information on all the pipelines and processors in involved in a Sitecore 8 request. It's not a line by line account, but all the key logic is described.

I'd like the post to develop over time, so if you find any inaccuracies, would like to contribute more information, or have useful links, then please leave a comment. Better still, contact me on Twitter.

All information has been written with reference to Sitecore 8 (rev 141212)

The CreateTracker pipeline is quite simple. It's called from the CreateTracker processor in the StartAnalytics pipeline, and contains only one processor by default. It would seem that the pipeline is intended to be extended in such a way that each processor should abort the pipeline if it successfully adds an ITracker object to args.Tracker, and only continue if args.Tracker remains null.


Namespace: Sitecore.Analytics.Pipelines.CreateTracker
Aseembly: Sitecore.Analytics
The GetTracker processor simply instantiates a new DefaultTracker object, and assigns it to the Tracker property of the pipeline's CreateTrackerArgs object. Within DefaultTracker's constructor, the following actions are performed:

  • The Sampling property is assingned a newly instantied TrackerSampling object.
  • The EnsureSessionContext pipeline is run.