상품 범위 맞춤 매개변수 만들기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
전자상거래 이벤트의 items
배열을 사용해
전자상거래 웹사이트 또는 앱의 제품 또는 서비스를 설명할 수 있습니다.
Google은 items
배열에 포함할 필수 및 권장 매개변수 목록을 제공합니다.
이러한 매개변수 외에도 items
배열에 최대 27개의 맞춤 매개변수를 포함할 수 있습니다. 이러한 맞춤 매개변수를 맞춤 상품 범위
매개변수라고 하며, 이 매개변수를 사용하여 비즈니스에 유용한 데이터를
캡처할 수 있습니다. 27개의 맞춤 항목 매개변수로 다음을 구성할 수 있습니다.
- 표준 속성에 대한 상품 범위 맞춤 측정기준 10개
- 애널리틱스 360 속성에 대한 상품 범위 맞춤 측정기준 25개
자체 상품 범위 맞춤 매개변수를 만들기 전에 필수 및 권장 매개변수 목록을 검토하세요.
상품 범위 맞춤 매개변수 추가
상품 범위 맞춤 매개변수를 추가하려면 items
배열에 해당 매개변수를 포함합니다. 예를 들어 제품의 재고가 있는지 여부를 파악하려면
이벤트에 다음 in_stock
맞춤 매개변수를 추가합니다.
items: [
{
item_id: "SKU_12345",
item_name: "Stan and Friends Tee",
affiliation: "Google Merchandise Store",
coupon: "SUMMER_FUN",
discount: 2.22,
index: 0,
item_brand: "Google",
item_category: "Apparel",
item_category2: "Adult",
item_category3: "Shirts",
item_category4: "Crew",
item_category5: "Short sleeve",
item_list_id: "related_products",
item_list_name: "Related Products",
item_variant: "green",
in_stock: true, // The item-scoped custom parameter "in_stock"
location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo",
price: 10.01,
quantity: 3
}
]
이러한 단계는 gtag.js 및 Google 태그 관리자 구현 모두에 적용됩니다.
다음 단계
상품 범위 맞춤 매개변수를 분석하려면 상품 범위 맞춤 측정기준을 만들어야 합니다. 상품 범위 맞춤 측정기준을을 설정하는 방법에 대한 내용은
맞춤 측정기준 및 측정항목을 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-13(UTC)
[null,null,["최종 업데이트: 2024-09-13(UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eitems\u003c/code\u003e array in ecommerce events describes products or services, using parameters defined by Google.\u003c/p\u003e\n"],["\u003cp\u003eYou can add up to 27 custom item-scoped parameters to the \u003ccode\u003eitems\u003c/code\u003e array to capture business-specific data.\u003c/p\u003e\n"],["\u003cp\u003eCustom item-scoped parameters can be added directly to the \u003ccode\u003eitems\u003c/code\u003e array within your ecommerce events, like the example showing the \u003ccode\u003ein_stock\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eTo analyze item-scoped custom parameters in your reports, you need to create corresponding item-scoped custom dimensions in Google Analytics.\u003c/p\u003e\n"]]],["The `items` array in ecommerce events allows for product/service descriptions, including required and recommended parameters. You can also add up to 27 custom item-scoped parameters, like `in_stock`, within this array. For standard properties, 10 item-scoped custom dimensions are configurable, and 25 for Analytics 360 properties. Adding a custom parameter involves including it in the `items` array. To analyze these parameters, an item-scoped custom dimension needs to be created.\n"],null,["# Create item-scoped custom parameters\n\nThe [`items` array](/analytics/devguides/collection/ga4/ecommerce#implementation) in ecommerce\nevents lets you describe the products or services on your ecommerce website.\nGoogle provides a [list of required and recommended parameters](/analytics/devguides/collection/ga4/reference/events)\nto include in the `items` array.\n\nIn addition to these parameters, you can include up to 27 custom parameters in\nthe `items` array. These custom parameters are called **custom item-scoped\nparameters** and they let you capture data that's useful to your\nbusiness. Of these 27 custom item parameters, you can configure:\n\n- 10 item-scoped custom dimensions for standard properties\n- 25 item-scoped custom dimensions for Analytics 360 properties\n\nMake sure to review the list of required and recommended parameters before\ncreating your own item-scoped custom parameters.\n\nAdd an item-scoped custom parameter\n-----------------------------------\n\nTo add an item-scoped custom parameter, include the parameter in the\n`items` array. For example, to capture whether a product is in stock, you can\nadd the following `in_stock` custom parameter to the event: \n\n items: [\n {\n item_id: \"SKU_12345\",\n item_name: \"Stan and Friends Tee\",\n affiliation: \"Google Merchandise Store\",\n coupon: \"SUMMER_FUN\",\n discount: 2.22,\n index: 0,\n item_brand: \"Google\",\n item_category: \"Apparel\",\n item_category2: \"Adult\",\n item_category3: \"Shirts\",\n item_category4: \"Crew\",\n item_category5: \"Short sleeve\",\n item_list_id: \"related_products\",\n item_list_name: \"Related Products\",\n item_variant: \"green\",\n in_stock: true, // The item-scoped custom parameter \"in_stock\"\n location_id: \"ChIJIQBpAG2ahYAR_6128GcTUEo\",\n price: 10.01,\n quantity: 3\n }\n ]\n\nNote that these steps apply to both gtag.js and Google Tag Manager\nimplementations.\n\nNext steps\n----------\n\nTo analyze item-scoped custom parameters, you must create an item-scoped custom\ndimension. For information about how to set up the item-scoped custom dimension,\nsee [Custom dimensions and metrics](//support.google.com/analytics/answer/10075209)."]]