Create an XDM schema for web data
Learn how to create an XDM schema for web data in the Data Collection interface.
Experience Data Model (XDM) schemas are the building blocks, principles, and best practices for composing schemas in Adobe Experience Platform.
Platform Web SDK uses your schema to standardize your web event data, send it to the Platform Edge Network, and ultimately forward the data to any Experience Cloud applications configured in the datastream. This step is critical as it defines a standard data model required for ingesting customer experience data into Experience Platform and enables downstream services and applications built on these standards.
To learn more about XDM schemas, take the course “Model Your Customer Experience Data with XDM” or see the XDM System overview.
Learning objectives
At the end of this lesson, you will be able to:
- Create an XDM schema from within the Data Collection interface
- Add field groups to your XDM schema
- Create XDM schemas for web event data using best practices
Prerequisites
All necessary provisioning and user permissions for Data Collection and Adobe Experience Platform described in the Configure Permissions lesson.
Create an XDM schema
XDM schemas are the standard way to describe data in Experience Platform, allowing all data that conforms to the schemas to be reused across an organization without conflicts, or even shared between multiple organizations. To learn more, see the basics of Schema composition.
In this exercise, you will create an XDM schema using the recommended baseline field groups for capturing web event data on the Luma Demo Site:
-
Open the Data Collection interface
-
Make sure the you are in the correct sandbox
note note NOTE If you are the customer of a Platform-based application like Real-Time CDP, we recommend using a development sandbox for this tutorial. If you are not, use the Prod sandbox. -
Go to Schemas in the left navigation
-
Select the Create Schema button on the top right
-
From the dropdown menu, select XDM ExperienceEvent
Add field groups
As noted earlier, XDM is the core framework that standardizes customer experience data by providing common structures and definitions for use in downstream Adobe Experience Platform services. By adhering to XDM standards, all customer experience data can be incorporated into a common representation. This approach allows you to gain valuable insights from customer actions, define customer audiences through segments, and express customer attributes for personalization purposes using data from multiple sources. See Best practices for data modeling for more information.
When possible, it is recommended to use existing field groups and adhere to a product-agnostic model and naming conventions. For any data specific to your organization that does not fit into the pre-defined field groups above, you can create a custom field group. See Creating a schema using the Schema Editor for more detailed steps on custom schemas.
-
In the Field groups section, select Add
-
Search for
AEP Web SDK ExperienceEvent
-
Check the box
-
Search for
Consumer Experience Event
-
Check the box
-
Select Add field groups
With the field groups selected, you are ready to name your schema. A common naming convention for XDM schemas is to name the schema after the source of the data:
- In the Composition panel, select the
Untitled schema name
- In the Schema properties panel, enter the Display Name
Luma Web Event Data
- Select anything outside of the Display Name field to activate the Save option
- Select Save
With both field groups, notice that you have access to the most commonly used key-value pairs required for data collection on the web. The display name of each field appears to marketers in the segment builder interface of Platform-based applications and you can change the display name of standard fields to suit your needs. You can also remove fields you don’t want. When you click on either field group name, the interface highlights what key-value pair groupings belong to it. In below example, you see what groups belong to Consumer Experience Event.
This lesson is just a starting point. When building your own web events schema, you must explore and document your business requirements. This process is similar to creating a Business Requirements Document and Solution Design Reference for an Adobe Analytics implementation, but should include requirements for all downstream data recipients such as Platform, Target, and event forwarding destinations.
The identityMap object
There is a special set of data required to identify web users called identityMap
.
It is a must-have object for any web-related data collection, as it houses the Experience Cloud ID required for identifying users on the web. It is also the key to setting internal customer IDs for authenticated users. identityMap
is discussed more in the Configure Identities lesson. It is automatically included in all schemas using the XDM ExperienceEvent class.
Now you are able to reference this schema when you add the Web SDK extension to your tag property.
Next: Configure an identity namespace