Sitecore contact facets – Create your own facet

Brian Pedersen's Sitecore and .NET Blog

This article describes how to create a simple Sitecore facet consisting of a DateTime and a list of strings.

A contact is made up of facets. Here are all the facets Sitecore uses (you will find the facets in App_ConfigIncludeSitecore.Analytics.Model.Config):

In this example I will add a facet that consists of a date and a list of strings. I will call it “AvailablePublishers“.

This is a real-life example where I needed to store a list of publishers that were available the last time the user was online. Each publisher is just an ID (a string) and I store these as a list on the Contact:

Available Publishers Facet Available Publishers Facet

It sounds simple, and it is – but there is a lot of code involved. So hang on, lets code.


The “AvailablePublishers” is a Facet, the list below consists of Elements. So I need…

View original post 387 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s