이 페이지에서: 제품 또는 콘텐츠 정보를 Adobe Target Recommendations에 전달하는 엔터티 특성과 각 엔터티 정보를 정의하는 방법을 알아봅니다.
엔터티 특성을 사용하여 제품 또는 콘텐츠 정보를 Adobe Target Recommendations에 전달합니다. 이 정보는 디자인에 표시되고 포함 규칙, 컬렉션 및 제외에 사용할 수 있습니다. 엔티티는 제품, 콘텐츠(문서, 슬라이드쇼, 이미지, 동영상 및 TV 프로그램 등), 구인 및 구직 정보, 식당 등 권장할 항목입니다. Recommendations이(가) 알고리즘에 사용되는 productId 또는 productPurchasedId(코드에서는 entity.id이라고 함)을(를) 보냅니다.
다음 사항을 고려하십시오.
entity.id은(는) 주문 확인 페이지에 전송된productPurchasedId과(와) Adobe Analytics 제품 보고서에 사용된productId과(와) 일치해야 합니다.- Recommendations에 전달하는 엔터티 특성 값은 61일 후에 만료됩니다. Adobe에서는 카탈로그의 각 항목에 대해 매월 최소 한 번씩 각 엔터티 특성의 최신 값을 Recommendations에 전달하는 것이 좋습니다.
대부분의 사전 정의된 매개 변수는 단일 값만 허용하며 새 값이 이전 값을 덮어씁니다. categoryId 매개 변수는 예외입니다(entity.categoryId 참조).
일반적으로 mboxCreate에서 at.js 1.x을(를) 사용하는 경우 표시 정보 mbox는 다음 예제와 비슷합니다. 모든 엔티티 매개 변수 속성은 대소문자를 구분합니다.
at.js 2.x을(를) 사용하는 경우 다음 예에서 사용한 mboxCreate은(는) 더 이상 지원되지 않습니다. at.js 2.x을(를) 사용하여 Recommendations에 제품 또는 콘텐츠 정보를 전달하려면 targetPageParams을(를) 사용하십시오. 예를 들어 권장 사항 계획 및 구현을 참조하세요.
| code language-javascript |
|---|
|
pageUrl 및 thumbnailUrl에는 절대 URL보다 상대 URL이 선호됩니다. 상대 URL을 사용하면 스테이징 서버나 개발 서버에 대한 하드코딩된 링크가 사용되지 않습니다.mbox가 제품 페이지에 있는 경우 제품 ID와 카테고리 ID를 모두 포함할 수 있습니다. 선택한 알고리즘이 표시할 항목을 결정합니다. 제품 ID는 친화성 알고리즘에 사용되고 카테고리 ID는 카테고리 알고리즘에 사용됩니다.
사용 가능한 변수
다음 표에는 사용 가능한 변수가 나와 있습니다. 표 뒤의 하위 섹션에서는 이 변수가 필요한 변수에 대해 자세히 설명합니다.
entity.name'entity.name=Giants& vs& Rockies& 5/12'entity.categoryId'entity.categoryId=womens:sweaters'entity.brand'entity.brand=brandxyz'entity.pageUrl'entity.pageUrl=baseball/giants-tix/giantsvrockies5.12.2000-67833'entity.thumbnailUrl'entity.thumbnailUrl=baseball/giants-tix/giants-136px.gif'entity.messageentity.message을(를) 사용하십시오.'entity.message=Family special'entity.inventory'entity.inventory=1'entity.value'entity.value=15.99'entity.margin'entity.margin=1.00'entity.사용자 지정'entity.secondary=Rockies'entity.event.detailsOnly'entity.event.detailsOnly=true'entity.id entity-id
항목을 인식하고 그에 대한 데이터를 공유하려면 다양한 제품에 사용된 모든 Adobe Experience Cloud 제품(Analytics 포함)에서 영숫자 ID가 동일해야 합니다.
entity.id 값은 REST API 호출에 전달될 때 URL 인코딩이 필요한 공백, 슬래시, 앰퍼샌드, 물음표, 백분율 기호, 쉼표 또는 기타 구두점 문자를 포함하지 않아야합니다. 하이픈 및 밑줄을 사용할 수 있습니다. entity.id 값에 올바르지 않은 구두점을 포함하면 일부 Recommendations 기능에 오류가 발생합니다.
entity.categoryId entity-category-id
entity.categoryId 값에는 카디건 하위 섹션(예: womens, womens:sweaters, womens:sweaters:cardigans)과 같은 여러 범주가 포함될 수 있습니다. 여러 카테고리는 쉼표로 구분해야 합니다. 새 categoryId 값은 기존 값을 덮어쓰지 않지만, 대신 엔터티를 업데이트하는 동안 추가됩니다. categoryId 값은 250자로 제한됩니다.
categoryId만 특정 권장 사항을 표시하는 데 사용되는 mbox에 전달할 수 있습니다. categoryId 값은 제품 세부 정보 페이지에서 전달된 entity.categoryId 값과 정확히 일치해야 합니다.예:
- 제품 세부 정보 페이지 예:
womens,womens:sweaters,womens:sweaters:cardigans - 예제 범주 페이지 스웨터:
womens:sweaters - 예제 카테고리 페이지 가디건:
womens:sweaters:cardigans
카테고리 기반 권장 사항의 경우 쉼표로 카테고리 값을 구분합니다. 쉼표로 구분되는 모든 값은 카테고리가 됩니다. 콜론(:)과 같은 기타 구분 기호를 사용하여 카테고리 값 내의 하위 카테고리를 구분하도록 정의할 수도 있습니다.
예를 들어 다음 코드에서 여성의 카테고리는 여러 하위 카테고리로 나뉩니다.
mboxCreate('mboxName', 'entity.id=343942-32', 'entity.categoryId= Womens, Womens:Outerwear, Womens:Outerwear:Jackets, Womens:Outerwear:Jackets:Parka, Womens:Outerwear:Jackets:Caban', 'entity.thumbnailUrl=...', 'entity.message=...');
mbox 배달의 경우 키에 가장 긴 속성 이름이 사용됩니다. 연결이 있는 경우 마지막 속성이 사용됩니다. 위의 예에서 범주 키는 Womens:Outerwear:Jackets:Caban입니다.
entity.inventory entity-inventory
빈 재고 특성 처리: 배달을 위해 포함 규칙, 컬렉션 규칙 또는 기준 설정이 entity.inventory > 0 또는 entity.inventory = 0이고 제품에 재고가 설정되어 있지 않은 경우 Target에서 이 값을 TRUE로 평가하고 재고가 설정되지 않은 제품을 포함합니다. 따라서 재고가 설정되지 않은 제품은 추천 결과에 표시됩니다.
마찬가지로, 글로벌 제외 규칙이 entity.inventory = 0으로 설정되어 있고 entity.inventory가 설정되지 않은 경우 Target은 이 규칙을 TRUE로 평가하고 제품을 제외합니다.
entity.inventory = 0인 규칙의 경우, 제품 검색 결과에 재고 값이 설정되지 않은 제품이 표시되지 않습니다.entity.사용자 지정 entity-custom
최대 100개의 사용자 지정 변수를 정의할 수 있습니다. 각 사용자 지정 속성에 대해 미사용 속성 이름을 지정할 수 있습니다. 예를들어, entity.genre(이)라는 사용자 지정 특성을 만들어 책 또는 동영상을 정의할 수 있습니다. 티켓 공급업체는 스포츠 경기의 원정 팀이나 콘서트의 서막 같이, 보조 참여자를 위한 이벤트 장소에 대한 속성을 만들 수 있습니다.
제한 사항:
- 사용자 지정 엔티티 속성에는 사전 정의된 엔티티 속성 이름을 사용할 수 없습니다.
entity.environment속성은 시스템에 의해 예약되어 있으므로 사용자 지정 엔티티 속성에 사용할 수 없습니다.targetPageParams, 피드 또는 API를 사용하여entity.environment을(를) 전달하려는 시도는 무시됩니다.
예:
'entity.venue=AT&T Park'
'entity.secondary=Rockies'
사용자 지정 엔티티 속성은 다중 값을 지원합니다. 문자 및 값 제한에 대해서는 사용자 지정 엔티티 속성을 참조하십시오.
예: 'entity.secondary=["band1", "band2"]'
다중 값 사용자 지정 엔티티 속성에는 유효한 JSON 배열이 필요합니다. 올바른 구문 정보는 사용자 지정 엔터티 특성을 참조하십시오.
entity.event.detailsOnly entity-event-details-only
이 매개 변수를 사용하여 mbox 호출이 알고리즘에 대한 동작 데이터 카운터를 증분 하지 못하도록 합니다.
다음 예에서 첫 번째 mbox 호출은 카탈로그 및 동작 데이터를 업데이트합니다. 두 번째 mbox 호출은 카탈로그만 업데이트합니다.
mboxCreate('myMbox', 'profile.geo.city = new york', 'profile.geo.state = new york', 'entity.id = 123', 'entity.inventory = 4' )
mboxCreate('myMbox', 'profile.geo.city = new york', 'profile.geo.state = new york', 'entity.id = 123', 'entity.inventory = 4', 'entity.event.detailsOnly=true' )
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: Entity attributes pass product or content information to Adobe Target Recommendations, and the page lists the available variables and how to define each one.
Intents:
- Pass product or content information to Recommendations with entity attributes.
- Find which entity variables are available, whether each accepts a single value or multiple values, and an example of each.
- Define
entity.id,entity.categoryId, andentity.inventorycorrectly. - Define custom entity attributes.
- Prevent an mbox call from incrementing behavioral data counters for an algorithm with
entity.event.detailsOnly.
Glossary:
- Entity: an item you want to recommend, such as a product, content (articles, slide shows, images, movies, and television shows), a job listing, or a restaurant.
entity.id: the name in the code of theproductIdorproductPurchasedIdthat Recommendations sends and that is used in the algorithms.- Custom entity attribute (product-specific): an
entity.custom variable that provides additional information about the item. entity.event.detailsOnly: a parameter that prevents an mbox call from incrementing behavioral data counters for an algorithm.
Guardrails:
entity.idmust match theproductPurchasedIdsent to the order confirmation page and theproductIdused in Adobe Analytics product reports.- Entity attribute values that you pass to Recommendations expire after 61 days.
- All entity parameter attributes are case-sensitive.
- Most predefined parameters accept a single value only, with new values overwriting old values. The
categoryIdparameter is the exception. entity.idis required and accepts a single value only. Its values must not contain spaces, slashes, ampersands, question marks, percentage symbols, commas, or other punctuation characters that require URL encoding when passed in a REST API call. Hyphens and underscores are allowed. Including invalid punctuation in anentity.idvalue causes some Recommendations functionality to fail.entity.categoryIdaccepts a comma-delimited list of categories. NewcategoryIdvalues do not overwrite existing values but are appended during entity update. ThecategoryIdvalue is limited to 250 characters.- To show a recommendation based on a category in a Category page, only one
categoryIdcan be passed into the mbox used to display that particular recommendation, and its value must match exactly the value ofentity.categoryIdpassed on the Product Detail page. entity.inventoryrequires an integer or long value.entity.value: only the decimal format is supported (for example, 15.99). The comma format (15,99) is not supported.- You can define up to 100 custom variables. You cannot use predefined entity attribute names for custom entity attributes.
- The attribute
entity.environmentis reserved by the system and cannot be used for custom entity attributes. Attempts to passentity.environmentusingtargetPageParams, feed, or API are ignored. - Multi-value custom entity attributes (JSON array) require valid JSON arrays.
Applicability:
- at.js 1.x with
mboxCreate: the display information mbox looks like the example on the page. - at.js 2.x:
mboxCreateis no longer supported. To pass product or content information to Recommendations, usetargetPageParams.
Terminology:
- Canonical name: entity attributes (variant: entity parameter attributes)
- Canonical name: Adobe Target Recommendations (variant: Recommendations)
- Synonyms: “
productIdorproductPurchasedId” = “entity.id” (the page says the former is referred to asentity.idin the code)
FAQ:
- How long do entity attribute values last? Entity attribute values that you pass to Recommendations expire after 61 days.
- Which entity variable is required?
entity.idis required and accepts a single value only. - How many custom variables can I define? You can define up to 100 custom variables, and you can specify any unused attribute name for each custom attribute.
- Can I use
entity.environmentas a custom entity attribute? No.entity.environmentis reserved by the system, and attempts to pass it usingtargetPageParams, feed, or API are ignored. - What does
entity.event.detailsOnlydo? It prevents an mbox call from incrementing behavioral data counters for an algorithm. - What happens to products with
entity.inventorynot set in delivery? If an inclusion rule, collection rule, or criteria setting usesentity.inventory> 0 orentity.inventory= 0, Target evaluates the value to TRUE and includes the products where the inventory is not set.
Troubleshooting:
- Known issue: Product Search is inconsistent with delivery for inventory value attributes that are not set. For example, for a rule with
entity.inventory= 0, Product Search does not display products where the inventory value is not set.
Examples:
- Example of an mbox that passes entity attributes: an
mboxCreate('productPage', ...)call withentity.id,entity.name,entity.categoryId,entity.pageUrl,entity.venue,entity.secondary,entity.thumbnailUrl,entity.message,entity.value, andentity.inventory(for at.js 1.x). - Category values for
entity.categoryId: a Product Detail page passeswomens,womens:sweaters,womens:sweaters:cardigans; a Category page for Sweaters passeswomens:sweaters; a Category page for Cardigans passeswomens:sweaters:cardigans. - Subcategories in
entity.categoryId: a colon (:) can separate subcategories within the category value, as inWomens, Womens:Outerwear, Womens:Outerwear:Jackets, Womens:Outerwear:Jackets:Parka, Womens:Outerwear:Jackets:Caban. - Custom entity attributes:
entity.genrecan define a book or movie. A ticket vendor can create attributes for an event venue and for a secondary performer, such as a visiting team in a sporting event or an opening act in a concert (for example,'entity.secondary=Rockies'). A multi-value example is'entity.secondary=["band1", "band2"]'. entity.event.detailsOnly: withmboxCreate('myMbox', ..., 'entity.id = 123', 'entity.inventory = 4'), the mbox call updates the catalog and behavioral data. With'entity.event.detailsOnly=true'added, the mbox call updates only the catalog.- Product page mbox: if the mbox is on a product page, you can include both the product ID and category ID. The selected algorithm determines which displays: the product ID is used for affinity algorithms and the category ID is used for category algorithms.
Best practices:
- Adobe recommends that you pass the latest value of each entity attribute to Recommendations at least once per month for each item in your catalog.
- Relative URLs are preferred for
pageUrlandthumbnailUrlrather than absolute URLs because recommendations receive data being sent from all environments on your site. Using relative URLs avoids hardcoded links to a staging or development server.
Related pages:
- For character and value limits of custom entity attributes: Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)
- For correct syntax of multi-value custom entity attributes (valid JSON arrays): Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)
Personas:
- developer: Can pass product or content information to Recommendations with entity attributes such as
entity.id,entity.categoryId,entity.inventoryandentity.value. Can define up to 100 custom variables. The page states that entity attribute values that you pass to Recommendations expire after 61 days. Where: “Guardrails”.
Onboarding:
- Level: Intermediate, Experienced
- First minimal step: If you use at.js 2.x, pass product or content information to Recommendations with targetPageParams.
- Next: For character and value limits of custom entity attributes: Custom entity attributes (c-recommendations/c-products/custom-entity-attributes.md)