Create a Custom Attribute
Custom attributes in Contentstack Personalize empower you to fine-tune your audience targeting. This guide provides a clear, step-by-step walkthrough for creating these attributes, enhancing your ability to deliver personalized content experiences.
Prerequisites
- Contentstack account
- Access to the Contentstack Organization that has Personalize enabled
- Access to a project in Personalize
Steps for Execution
Note: For this guide, we have assumed that you have already created a Personalize project. If not, please follow this guide and create a project in Personalize.
Let’s suppose you want to create a custom attribute for users who are a member of a Loyalty Program on your website. To create the custom attribute, log in to your Contentstack account and perform the following steps:
- In the left navigation panel, click the Personalize icon.
- You will be redirected to the Personalize Projects landing page. Click the project for which you want to create a custom attribute.
- Click the Attributes tab in the left navigation panel. From the Attributes page, click the + New Attribute button.
- In the New Attribute modal, provide a suitable Name and Key for the attribute along with an optional Description.
- Once you have done that, click the Create button.
This creates a new custom attribute in your Personalize project. You can now add the custom attribute to an audience.
Note:
- Users with Owner and Member access to a Personalize project can create new custom attributes, and edit/delete existing custom attributes.
- The default number of Custom Attributes allowed per project is 100.
Additional Resource: You can use the Personalize Management API to create, edit, delete, and retrieve all existing attributes.
Next Steps
After creating a custom attribute in your project, the data needs to be collected for the attribute. This can be done using the Personalize Edge SDK or the Personalize Edge API. You can also use tools like Google Tag Manager and Customer Data Platform integrations for collecting the data.