In part 1 of this series, we discussed how personalization in Sitecore can be embedded within a Snippet to create personalization rules that are used within global (or reusable) elements like headers or footers. In part 2, we will now discuss how Snippets create a whole new type of personalization in Sitecore – macro personalization.
This is cool.
We refer to this as macro-personalization because normally personalization rules apply to a single component, not a collection of components. However, because a Snippet is placed on a page with a special component (the “Reference a Snippet” component), the actual Snippet rendered on the page is the datasource, and thus the entire Snippet used can be personalized as well.
Personalization of a Global Header or Footer
For our example, let’s create a basic personalization condition that will change the entire footer of the website to different Snippet.
Let’s see that again…Personalizing or AB Testing a Carousel with a Standard Header
Another example of macro personalization can be given by replacing an entire carousel with a standard page header.
Since the carousel was built in the page and not as a Snippet in the first place, we’ll begin by converting it to a Snippet by using the snapshot feature in SCORE.
Once the Snippet is created from the Snapshot, we remove the carousel from the page and add it back as a Snippet.
Finally, I’ll add a personalization rule to swap out this carousel with a standard page hero.
And here’s the result
And there you have it – macro-personalization with SCORE Snippets.