Back

This article describes how to use the Set of Strings attribute.

In this article:

How it Works

The Set of Strings attribute stores a collection of unique text values, called a set. Items are only stored once, regardless of the number of times it occurs for the visitor or visit. The Set of Strings attribute is most commonly used for Product Categories Viewed, Pages Viewed, and Products Purchased.

Examples:

Set Name String values
Product Categories Viewed "Home Improvement", "Electronics", "Apparel", "Kitchen"
Browsers Used "Chrome", "Firefox", "Safari"
Cart Items "ipad", "screen protector", "headphones"
Product IDs "5765", "9898", "1534"

Enrichment Types

There are nine (9) enrichment types available:

Create a Set of Strings

Use the following steps to create a Set of Strings attribute:

  1. In the sidebar, go to AudienceStream > Visitor / Visit Attributes.
  2. Click + Add Attributes on the top-right.
    The Add Attribute dialog displays.
  3. Under Choose a Scope, click Visit or Visitor.
    White UI_Set of Strings Attribute_Add Attribute.jpg
  4. Click Continue.
  5. Under Choose a data type, select Set of Strings and click Continue.
    WhiteUI_AudienceStream_Select Set of Strings.jpg
  6. In the Title field, enter a descriptive name for the instance.
    This is a required field. Must contain only ASCII characters (0 to 127) and not exceed 250 characters.
  7. (Optional) Provide helpful comments in the Notes field.
    This field is recommended.
  8. (Optional) Click the AudienceDB check box to send data from this set to Amazon Redshift.
    This feature is available to DataAccess users only and requires that AudienceDB is enabled for the profile. Learn more.
    WhiteUI_AudienceStream_Properties.jpg
  9. Go to the next section to add an enrichment.
    In order to enrich or update this set, you must apply an enrichment.

Add an Enrichment

Use the following steps to apply an enrichment:

  1. Click Add Enrichment.
  2. Choose an Enrichment from the drop-down list to display the configuration dialog.
    WhiteUI_AudienceStream_Select Enrichment Type.jpg
  3. From the WHEN drop-down list, choose when to trigger the Enrichment to let AudienceStream know when to listen for changes that require updating the set.
    • New visitor
      Enrichment will occur when the visitor is new to your site.
    • New visit
      Enrichment will occur on a new visit by a visitor.
    • Any event
      Enrichment will occur anytime a page event occurs.
      If you are not sure what to select, choose this option.
    • Visit ended
      Enrichment will occur when a visit ends.
  4. To add more enrichments, repeat the steps above.
  5. Go to the next section to apply a rule.

Apply a Rule (Optional, Recommended)

A rule condition provides an additional trigger that supersedes the WHEN options configured in the enrichment. Applying a Rule is not required but is recommended as a best practice. Applying a rule enables you control when and where an enrichment can trigger. You can apply a predefined rule or create a new rule.

Use the following steps to apply a predefined rule or create a new rule:

  1. To apply a predefined rule, click in the Choose a rule (optional) field and make a selection from the drop-down list.
    WhiteUI_AudienceStream_Apply Rule to Enrichment.jpg
    Adding a new rule while still in the this dialog automatically applies it to the enrichment.
  2. Click Save.
  3. To apply a new Rule, click Create Rule.
    WhiteUI_AudienceStream_Create Rule.jpg
  4. Create a new rule and then click Save.
  5. Click Save/Publish to confirm the changes introduced in your profile.