• Document Up to Date

Targeting Configuration

The targeting configuration file configures the targeting system of Crafter Studio to help provide Crafter Engine with fake user properties that help drive the targeting system. To modify the targeting configuration, click on siteConfig from the bottom of the Sidebar, then click on Configuration and select Targeting Configuration from the dropdown list.

Configurations - Open Targeting Configuration

Sample

CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/targeting/targeting-config.xml
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!-- targeting-config.xml
 3
 4  This file configures the targeting system of Crafter Studio to help provide
 5  Crafter Engine with fake user properties that help drive the targeting system.
 6
 7  Pages, components, search, services and more can respond differently depending
 8  on the user properties, and content delivery can be very personalized based
 9  on user properties. In order to test and validate the experience, this file can
10  help set these properties as KVP (key-value-pairs) that are then injected into
11  the Crafter Engine's session and are made accessible using the Profile APIs.
12
13  You can learn more about personalization and targeting here:
14  http://docs.craftercms.org/en/3.0/developers/targeting.html
15
16<property>
17  <name />
18  <label />
19  <description />
20  <type />
21  <hint />
22</property>
23
24Please note that valid types are limited to: dropdown, checkboxes, input.
25-->
26<targeting>
27
28  <property>
29    <name>segment</name>
30    <label>Segment</label>
31    <description>User segment.</description>
32    <type>dropdown</type> <!-- valid types: dropdown, checkboxes, input -->
33    <possible_values>
34      <value>guy</value>
35      <value>gal</value>
36      <value></value>
37    </possible_values>
38    <default_value></default_value>
39    <hint>Setting the segment will change content targeting to the audience selected.</hint>
40  </property>
41
42  <property>
43    <name>name</name>
44    <label>Name</label>
45    <description>User's first and last name.</description>
46    <type>input</type> <!-- valid types: dropdown, checkboxes, input -->
47    <default_value>Joe Bloggs</default_value>
48    <hint>Enter user's first and last name.</hint>
49  </property>
50</targeting>