Create a segment using State attribute
Learn more about the Device application object through an example that uses a location attribute (state).
In this example, we are creating two segments using a profiler rule: North Carolina and California. Each segment views content that is based on the location of the device.
The segments in this saved profiler rule appear in the Add Segment view when we create targeting rules. We can add these segments to content in a targeting rule or use these segments in other types of rules.
- Click Applications > Personalization > Business Rules.
- From the Personalization Navigator, click New > Rule.
- For Rule Type, select Profiler. The profiler rule groups a user into one or more segments. Segments are profiles.
- The numbered screen capture, along with the corresponding table, provides the values and selections that are used in this example. Use these example values and selections to guide you in creating a profiler rule that uses the device class attribute.
Numbered item in screen capture Description 1 Type Device segments by state as the name for your rule. 2 By Located in, use the default folder to store your rule for this example. 3 For Rule Type, select Profiler. A segment is another word for profile in the profiler rule. 4 Click Profile, and enter North Carolina as the name for your segment. Click Submit. 5 In this example, we are defining a segment that is based on the state the device is located in. Define attributes and values for the North Carolina segment. Click attribute, and select Device > State. The attribute label changes to current Device.State. Note:
- We can also create other segments that are based on location by selecting Country, Latitude, or Longitude.
6 In this example, continue to use is as the comparison operator. 7 Click value to enter North Carolina as the value for the condition. Click Submit. 8 In this example, we are not setting up another condition for the North Carolina segment. Skip to add Profile. 9 Click add Profile to add another segment to the profiler rule. Enter California as the name for your segment. Click Submit. Not shown in screen capture Define attributes and values for the California segment. Click attribute, and select Device > State. The attribute label changes to current Device.State. Not shown in screen capture In this example, continue to use is as the comparison operator. Not shown in screen capture Click value to enter California as the value for the condition. Click Submit.
- Click Save.
Parent topic: Location attributes