Insights

What Are Sitecore Failure Actions?

And why you should use them.

What Are Sitecore Failure Actions?

In the same way you can set up goals and events in Sitecore to track the completion of valuable actions on your site, you can also set up what’s called a ‘failure action’, which is an event type that you can associate with an error or system action that prevents a user from completing an action or achieving a goal.

Why Do You Need To Set Up Failure Actions?

Failure actions allow you to track unsuccessful actions on your site in Sitecore Analytics, which gives you a more rounded view of your website experience for your visitors.

Tracking the sub-par experiences users are having on your site also helps you detect any user experience issues that you need to resolve, such as knowing what search queries are showing no results, so that you can write content to allow visitors to find the information they’re after.

Examples Of Failure Actions

  • Displaying a 5xx or error page
  • Showing a no search results message after a user searches for a query that you have no content for
  • Displaying any kind of error message after a visitor is unable to complete a task, i.e. log into a platform or account

What Items Can You Add Failure Actions To?

You can associate failure actions with any items, such as a form, error page, search field, landing page and more.

Failure actions aren’t just limited to a single item. You can add failure actions to a number of items.

How To Assign Failure Actions In Sitecore

To assign a failure action to a content item, from the Sitecore launchpad, click Content Editor.

Open the content tree and navigate to the item you want to associate the event with.

Click on the item, and in the top navigation ribbon, select Analyze, then click Attributes.

Attributes in the Sitecore navigation

A dialog box will open.

In the Attributes dialog box click the Failure Actions tab and then select the failure event that you want to associate with the item.

The options you can choose from include:

  • Campaign registration failed
  • Error
  • No search hits found
  • Page error
  • Page not found

Select the failure event that you want to associate with the item

Click OK.

Assigning Failure Actions To Multiple Items In Sitecore

There is a way to assign failure actions to multiple items if they are in a bucket.

Click on the Content Editor from the Sitecore launchpad.

Select an item or item bucket.

Click on the search icon (next to Content), and enter * to return all the items in the item bucket.

Click the drop-down arrow to the left of the search field and select Search Operations.

Assigning failure actions to multiple items in Sitecore

In Search Operations, click Apply Campaign Events.

In the Attributes dialog box, select either the event or the failure action that you want to associate with the items.

To associate the event with these items, click OK.

Wrap Up

I hope this blog was useful for you. If you have any questions about Sitecore's digital marketing features, please fire the question in my Facebook group for Sitecore Marketers and Content Authors, and I can look into it for you.

Additionally you can reach me on LinkedIn and Twitter.

👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting