I'm exploring Sitecore CDP capabilities and want to know about the maximum number of recommended values for additional attributes that can be added using 'ext' as key-value pair in Sitecore CDP.
2 Answers
As per Sitecore documents - https://doc.sitecore.com/cdp/en/developers/sitecore-customer-data-platform--data-model-2-1/send-additional-event-data-to-sitecore-cdp.html below is a list of guidelines for using the events data extension:
Only one data extension per event type is supported.
The name of the event data extension must be ext.
The key of the event data extensions must be default.
The attribute name must be alphanumeric [A-Z,a-z,0-9] as per the json rfc7159 spec.
The attribute name of the event data extension must be written in camelCase.
The attribute name must be unique within the entire event type.
The attribute name of the event data extension must be meaningful. Consider using the friendlyID.
If grouping is required, use common prefixes.
An event data extension has a maximum of 50 attributes.
From your JSON example it looks like you are trying to add extension attributes to the guest data model. If that's the case then the maximum number of attributes is 100.
Sitecore CDP supports data extension attributes for guests, events and orders data models, and they have different limits:
- guest data extension can have a maximum of 100 attributes (link)
- event data extension can have a maximum of 50 attributes (link)
- order data extension can have a maximum of 50 attributes (link)
UPDATE: I changed documentation links above to point to the new Engage library documentation because the old links no longer work.
-
Thank you Anna for your answer with further details on guest/order data extension. it is also accepted with Mahendra's answer. Dec 2, 2022 at 4:09