Back

This article describes the Number attribute and how to use it in the Universal Data Hub (UDH) product.

In this article:

Table of Contents Placeholder

How it Works

A Number attribute stores the numerical value of browsing metrics such as visits, page views, and events. Common examples include Lifetime Value, Order Total Transaction, or Days Since Last Purchase. Number is one of the three (3) default data types available to all Scopes in AudienceStream.

Available Experiments

Enabling Experiments for the Integer attribute type allows you to change the type of an existing Number attribute type from decimal to integer or to select from two (2) Number attribute types when creating a new Number attribute:

  • Decimal
    • Default value.
    • Needed for attributes that represent monetary values or integers.
  • Integer
    • Useful for whole number attributes that represent quantities, counters or scores.
    • The Integer value type, and the ability to select between the two, is currently available as an experiment only and must enabled prior to use.
    • To learn more about how to enable this feature, see Experiments.

Add a Number Attribute

Use the following steps to add a Number attribute:

  1. In the left sidebar, go to Audience Stream > Visitor/Visit Attributes.
  2. Click + Add Attribute on the top-right.
    The Add Attribute dialog displays.
  3. Under Choose a scope, click Visit or Visitor.
    Add a Number Attribute_Choose Visit or Visitor.jpg
  4. Click Continue.
  5. In the Data Type listing, click the Number radio button to select and then click Continue.
    Add a Number Attribute_Select Number Data Type.jpg
  6. In the Title field, enter a descriptive name for the Number instance.
    This is a required field. The title must not exceed 250 characters and must only contain ASCII characters (0 to 127).
    Add a Number Attribute_Attribute Properties.jpg
  7. (Optional) In the Notes field, provide helpful comments.
  8. Check the Restricted Data checkbox if the attribute will include personal information about the visitor. (Learn more)
  9. Check the AudienceDB checkbox to make this attribute available to AudienceDB.
    Enabling will send data from this Number attribute to Amazon Redshift.

    This feature is available to DataAccess users only and requires AudienceDB to be enabled in the profile. (Learn more)

  10. Proceed to the next section to add an enrichment.

Add Enrichments

In order to set or update a Number attribute, you must first apply an Enrichment.

Use the following steps to apply an enrichment.

  1. Click Add Enrichment and select one of the following from the drop-down list:
    • Increment or Decrement Number
      Increment or decrement a number based on a set of conditions.
    • Set Ratio
      Set the quotient of two numbers as a new ratio number.
    • Set Product
      Set the product of two numbers as a new number.
    • Set Difference
      Set the difference of two numbers as a new number.
    • Set Sum
      Set the sum of two numbers as a new number.
    • Set Number
      Set the number to a specific number.
    • Set Difference Between Two Dates
      Set the difference between two dates as a new number.
    • Set Rolling Average Based on Timeline
      Set the number to the rolling average of another number captured within a timeline.
    • Set Rolling Sum Based on Timeline
      Set the number to the rolling sum of another number captured within a timeline.
    • Set Number to the Number of Entries in Timeline
      Set the number to the number of entries of a timeline.
    • Set Number to Tally Value
      Set the number to s specific value within the tally.
    • Set Number to the count of Items in Tally
      Set the number to count of items in the tally.
    • Set Number to the count of Items in Set of Strings
      Set the number to the count of items in the Set of strings.
    • Set to Tally's Rolling Max Based on a Timeline
      Set the number to the rolling maximum of another number in a tally captured within a timeline.
    • Set Number to change in Number
      Set this attribute to the difference of the selected value between this event and the last event.
    • Set Number to change in Date
      Set this attribute to the difference of the selected value between this event and the last event.
    • Set to the Number of Items in the Array
      Set to the number of items in the array.
  2. Configure the Enrichment you selected.
  3. From the When drop-down list, select one of the following to choose when to trigger the Enrichment.
    This step tells AudienceStream when to listen for changes that require updating the number.
    • 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.

      Choose this option if you are not sure what to select.

    • Visit ended
      Enrichment will occur when a visit ends.
  4. To add more enrichments, repeat the steps in this section.
  5. Proceed to the next section to create a rule and apply rule conditions.

Apply Rule Conditions

Applying a rule is not mandatory but is highly recommended. Rules make it possible to more finely control when and where an enrichment triggers and provides additional an trigger that supersedes what is configured in the WHEN options.

Use the following steps to apply a one or more rules:

  1. To apply a predefined rule, select a predefined rule from the Choose a rule drop-down list.
    Once selected, the rule is attached.
    Add a Number Attribute_Add Predefined Rule.jpg
  2. To apply a new rule, click Create Rule. (Learn more).
    Adding a new Rule using the Enrichments dialog automatically applies it to the enrichment.
  3. To add more rules, use the steps above to add another predefined rule or create a new rule.
  4. When complete, click Finish.

Save and Publish

Click Save/Publish at the top-right corner to confirm the changes you introduced in your profile.