Condition dialog

Overview

You use the Condition dialog to select the characteristics of your visitors that you use to build filters for various features of Sitefinity Insight. These features can be defining rules for conversions, touchpoints, personas, and lead scoring types. This article demonstrates how to use the options of this dialog in the most efficient manner.

The dialog has two modes of operation:

  • By behavior
    In this mode, you specify an interaction or an activity that a visitor completes on your site. You also define the data that you want to collect from this interaction, which you can afterwards use as a filter.
    For example, a visitor visits a page and you want to capture the URL of the page.

    Interactions may span across different channels that characterize the visitor’s experience on your website. This experience can include the content that the visitor sees, clicks, downloads, or searches for. You can choose whether visitors score points just once or every time when they complete the interaction.
  • By contact property
    In this mode you base your filter on a personal or a demographic characteristic of the contact profile that performs the interaction.
    These rules consist of a contact profile property and its value.
    For more information, see Configure contact properties.

By defining a rule, you specify the interaction and the object, or the contact property and its value. The following screenshot displays the Define conditions dialog:

Define condition dialog

Filter by contact properties

NOTE: This feature is not available when you define touchpoints.

To use contact properties as filtering criteria, perform the following:

  1. At the top of the dialog, select By contact property radio button.
  2. In the left dropdown box, select the contact property.
  3. In the right, click the header to choose the type of the filter you want to apply.
    For more information about the operators, see the table below.
  4. In the input field on the rights, you enter the matching criteria.
  5. To save your changes, click Done.

Following is a detailed list of the operators that you can use to match the criterion. This example assumes that you have selected FirstName as a contact property and have entered John as the matching criterion:

Operator Description
Exact match The string that you enter must exactly match the value of the selected contact property.
In this example, all contacts with first name John match, but contacts with first name John-Angus do not match.
Is not The string that you enter must differ by at least one character from the value of selected contact property.
For example, all contact with first names which are not strictly John match, including names which contains these letters as part of the name.
Contains The string you enter must be present somewhere in the value of the selected contact property.
In this example, all John, Johnny, Angus-John, or Christopher Johnnathan Anthony match.
Doesn’t contain The string that you enter must not be present anywhere in the value of selected contact property.
For example, Anthony would match, but Christopher Johnnathan Anthony would not match, because it contains John.
Starts with The string that you enter must be at the start of the value of the selected contact property.
For example, Johnnathan would match, but Anthony-John would not.
Doesn’t start with The string that you enter must not be at the start of the value of the selected contact property.
For example, Anthony would match but Johnnathan would not.
Ends with The string that you enter must be at the end of the value of the selected contact property.
For example, Anthony-John would match but Johnnathan would not.
Doesn’t end with The string you enter must not be at the end of the value of the selected contact property. For example, Johnnathan would match but Anthony-John would not.
Any provided All visitors that have provided a first name will match.
Not provided All visitors that have not provided a first name will match.

IMPORTANT: Sitefinity CMS reports multi-valued user properties as a comma-separated list of values. Therefore, to create a rule which consists of a singular value, you must use the Contains operator and not the Exact match/Is operator.

EXAMPLE: For example, lets assume that you want to create a rule about visitors who are in the Content editor Sitefinity role. Sitefinity CMS reports the roles like this:
User, Background User, Administrator, Content editor
Therefore, you define the rule as:
Role Contains Content editor.

Filter by visitor behavior

To use visitor actions and behaviors for selection criteria, perform the following:

  1. At the top of the dialog, select By behavior radio button.
  2. Click the title of the left dropdown box and select one of the following:
    • Visitors who…
      This filters the visitors who perform the specified action.
    • Visitors who don’t
      This filters the visitors who do not perform the specified action.
  3. In the dropdown box, select the action that you want to use for filtering.
    When you do this, the right part of the dialog changes to the relevant configuration settings for your choice.
    EXAMPLE: If you choose the Visit page with UTM parameters behavior, the right part allows you to enter an URL which Sitefinity Insight automatically parses for UTM parameters. If you select Login, you do not need to enter any additional details, because all logins are automatically counted.
  4. On the right you choose what data you want to capture.
    You can also choose an exact or a partial filter. For example, if you want to capture an URL, use the exact filter, click the title above the right box and choose Exact URL. To use a loose filter, click the title above the right box and choose Part of the URL.
    For text fields, you click the title to choose between Exact match and Contains. If you choose the latter, Sitefinity Insight matches all strings containing the text that you entered anywhere.

    Some behaviors, such as Register and Login do not require additional filters. Sitefinity Insight matches these behaviors every time they happen.

  5. To save your changes, click Done.

Behavioral criteria

Following are the different behavior criteria you can use.

Visit page

The visitor navigates to a specific page or pages.

You specify the full or partial URLs of the page.

Visit page with UTM parameters

As a marketer, you often create multi-channel campaigns and you use different tools, such as Mailchimp or Eloqua, to handle different channels and traffic sources. To gather all the data about the performance of your campaigns, you can use UTM parameters.

The following demonstrates how to use UTM parameters to track page visits.

Sitefinity Insight enables you to create touchpoints, persona and lead scorings, and conversions based on UTM parameters.

To do this, when defining these metrics in the respective interaction picker, use the Visit page with UTM parameters interaction from the dropdown box. For example, when defining a new Touchpoint, the window looks like this:

Touchpoint interaction picker

For more information about defining the respective metric, see Define touchpoints, Add and manage lead scoring rules, and Conversion events.

There are the following considerations when using the interaction picker window to create metrics based on UTM:

  • You always need to enter the complete page URL.
  • In the corresponding text fields, you must enter at least one of the UTM parameters Campaign, Source, Medium, Term, or Content.
    As a convenience, when you paste a full URL with UTM parameters, Sitefinity Insight parses it and fills out the relevant text fields automatically from the URL.

NOTE: Unlike other interactions, the only supported relation among parameters is AND which is always used. Therefore, all parameters are considered when matching the interaction.

View content with tag or category rule

IMPORTANT: This rule is available only when defining rules for Personas and Lead scoring types.

The rule View content with tag or category differs from the other rules. You use this rule to define a scoring rule not for a particular interaction, but for an entire class of interactions. For example, you can define a rule not for a particular news item, blog post, dynamic item, or page but for multiple such content items that you have classified using tags, categories, or custom classifications.

When you use this rule, you can choose between the following conditions:

  • All of… indicates that, to categorize a particular visitor, all classifications that you have set must be satisfied.
    If you assign different classifications to content items at different times, the visitor scores only once, at the moment when all classifications become applicable.
  • Any of… indicates that, to categorize a particular visitor, at least one of the classifications that you have set must be satisfied.
    If you assign different classifications to content items at different times, the visitor scores every time when any of the classifications become applicable.

NOTE: When you use hierarchical classifications, Sitefinity Insight flattens the hierarchy and considers all classifications at the same level. For example, consider the following classification hierarchy:

  • Sports
    • Soccer
  • News
    • Soccer

In this case, if your rule includes Soccer, items belonging to Sports, News, or Soccer will trigger the rule. If your rule includes News, the rule will trigger if your items are classified as either News or News » Soccer in Sitefinity CMS.

IMPORTANT: Sitefinity CMS always reports the classifications to Sitefinity Insight in the site's default language, even if the visitors see these classifications translated. When you create rules, use only the default site language.

If you have multiple sites reporting to the same data center, these sites use different default languages, and they share the same classifications. In that case, you must create your rules to contain classifications in all default languages. For example, if you have two sites that share their tags, but have different default languages - English and German, your rule must look like tagEN or tagDE. This ensures that Sitefinity Insight correctly matches the reported events.

Submit form

The visitor navigates to a specific page or pages containing the form. You specify the full or partial URLs of the page containing the form.
For example, https://example.com/contact-us or contact-us.

Download file

The visitor navigates to a specific file or files. You specify the full or partial URLs of the files.
For example, https://example.com/brochure.pdf or brochure.pdf.

Search for

The visitor searches using the built-in search widget in Sitefinity CMS. If you have created a custom search solution, you need to send interaction data to Sitefinity Insight manually, using the Sitefinity Insight SDK.

For more information, see Search box widget, Collect data, and Track and collect data from Sitefinity CMS.

Register

When any new user registers an account.

Come from site

When a visitor comes from specific sites. You specify either the exact site domain - for example, google.com, or part of the domain - for example, google.

Login

Any user logs in.

Logout

Any user logs out.

Play video

When the visitor plays a video hosted on Sitefinity CMS. To use the exact match, you must enter the full URL - for example, https://example.com/my-video.mp4.

NOTE: This rule does not trigger for videos hosted outside Sitefinity CMS, such as YouTube or Vimeo. For more information, see Videos.

Complete conversion

When a visitor completes a conversion. You select the conversion name.
For more information, see Define and track conversions.

NOTE: When you delete a conversion participating in a scoring rule, both the conversion and the corresponding rule are deleted.

Match persona

When a visitor enters a persona. You select the persona name.
For more information, see Persona scoring rules.

NOTE: When you delete a persona participating in a scoring rule, both the persona and the corresponding rule are deleted.

Custom interactions

In addition to the built-in interaction types, you can also use custom interactions. You create them using the Sitefinity Insight SDK for JavaScript or .NET, Google Tag Manager.

You do this by importing data manually using CSV files or automatically with Azure Data Factory or Sitefinity Integration hub. After you import interaction data containing custom interactions, they appear in the dropdown under the header Custom interactions and you can use them to define your rules.

NOTE: Only the filters Exact match and Contain are available for custom interactions.

Was this article helpful?