Last Updated 12/04/18.

Your Super Pixel has a Sprinkle appended to it that tracks page views. You can add a custom Sprinkle to your Feathr Super Pixel to track additional data about someone's activity as they visit your site. Using the Sprinkle function generates a unique “breadcrumb” on the Person, which can be used to filter upon in Segments. Below, we'll review some common examples of using the Sprinkle function to give you an idea of how you can better use it yourself!

First, it's a good idea to review the differences between the Update and Sprinkle functions in this article. A good rule of thumb is to use Sprinkle for any activity associated with a Person, like the pages they visit or things they click on. Update is used to update attributes of a Person, like their name or email (things that most likely don't change). 

Sprinkle Examples using Custom Parameters

Example 1 - Page Organization

By adding a custom Sprinkle function, you can segment your site visitors by their interests for a more personalized experience. A common example would be to use a particular value that describes the section of the website they are visiting. 

Let's say your website is for a Pet Rescue site. You have information on caring for pets, adoption pages for dogs, cats, and birds, and a few pages on volunteering. You could add a custom Sprinkle called "page_type" to your code to identify all of the pages associated with adoption to better organize your visitors. See the example below:

feathr("sprinkle", "page_view", {
"page_type": "adoption"
});

Then, you could build a segment using "page_type" equals "adoption" as your filter to organize everyone who interacted with an adoption page into one segment. 

Example 2 - Content Segmentation

Another example we typically see is for a frequently updated blog or website. You can add a custom Sprinkle to identify the different types of content people view, and create segments that can be targeted with more information on the particular subjects they're interested in. 

Let's use our Feathr website as an example. We have pages about our product features, a blog, partnerships, webinars, and more. However, some pages contain a variety of topics, so we want to be able to easily identify each type. 

For example, our "Learn" page on our website contains some guides & resources, our Live Events, our webinars, and our news & announcements. People could be visiting our Learn page for a variety of reasons, so we want to be able to separate those who check out our webinar vs. those that check out our Live Events. So, each type of content can have its own Sprinkle that identifies it accordingly. And as we add more content to our site, no matter which page it's on, we can make sure to add the appropriate Sprinkle as well, so it can be added to the corresponding segment.

On all of our Live Event posts, we could add the following Sprinkle: 

feathr("sprinkle", "page_view", {
"interest": "events"
});

On our webinar posts or landing pages, we could add the following Sprinkle:

feathr("sprinkle", "page_view", {
"interest": "webinar"
});

Then, you could build two different segments using "interest" equals "events" and "interest" equals "webinars" as your filters. When you have an upcoming webinar, you can retarget the "Interested in Webinar" segment with ads, because we know they've visited those webinar pages. 

Example 3 - Form Submission/Registration

You can also use Sprinkles on a page to identify form submissions or registration completions. For example, if you have a form on a page that expresses interest in a particular event and you want to track when someone fills out that form, you can set the type of the Sprinkle and pass the event info. This is helpful when your form does not redirect to a unique URL upon submission. In this case, you can add the Sprinkle to fire only upon the completion of the form. 

If you are using the same form across multiple events, you want to be able to distinguish the particular event each form is associated with to build accurate segments.

feathr("sprinkle", "form_submission", {
"event": "Cool Event 2019"
});

The example above passes "form_submission" as the type (Flavor) of activity as well as the custom field "event" which identifies that this activity is specific to a form for Cool Event 2019.

The "form_submission" activity type is a Feathr default type (similar to "page_view" or "page_link_click") that you can use when configuring a Goal for a campaign.

Common Questions

How do I create custom sprinkles?
You should work with your Customer Success Manager and your web developer to identify which types of information you want to capture, and where you can place the code. You should always add any custom Sprinkles right after the Super Pixel code, on any pages you want to apply it. The code should be placed right after the Super Pixel so it fires in the correct order. Otherwise, as long as you've done this, the information will pass back into Feathr, so you can start to build segments using the Activity filter. For more information on custom code, be sure to check out our Developer Documents.

Related Articles

When to use Update vs. Sprinkle Function
Super Pixel Implementation
Breadcrumb Data & Activity

Did this answer your question?