Back to Firebase Js Sdk

Item interface

docs-devsite/analytics.item.md

12.12.14.5 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

Item interface

Standard Google Analytics Item type.

<b>Signature:</b>

typescript
export interface Item 

Properties

PropertyTypeDescription
affiliationstring
brandstring
categorystring
couponstring
creative_namestring
creative_slotstring
discountCurrency
idstring
indexnumber
item_brandstring
item_categorystring
item_category2string
item_category3string
item_category4string
item_category5string
item_idstring
item_list_idstring
item_list_namestring
item_namestring
item_variantstring
location_idstring
namestring
priceCurrency
promotion_idstring
promotion_namestring
quantitynumber

Item.affiliation

<b>Signature:</b>

typescript
affiliation?: string;

Item.brand

Warning: This API is now obsolete.

Use item_brand instead.

<b>Signature:</b>

typescript
brand?: string;

Item.category

Warning: This API is now obsolete.

Use item_category instead.

<b>Signature:</b>

typescript
category?: string;

Item.coupon

<b>Signature:</b>

typescript
coupon?: string;

Item.creative_name

<b>Signature:</b>

typescript
creative_name?: string;

Item.creative_slot

<b>Signature:</b>

typescript
creative_slot?: string;

Item.discount

<b>Signature:</b>

typescript
discount?: Currency;

Item.id

Warning: This API is now obsolete.

Use item_id instead.

<b>Signature:</b>

typescript
id?: string;

Item.index

<b>Signature:</b>

typescript
index?: number;

Item.item_brand

<b>Signature:</b>

typescript
item_brand?: string;

Item.item_category

<b>Signature:</b>

typescript
item_category?: string;

Item.item_category2

<b>Signature:</b>

typescript
item_category2?: string;

Item.item_category3

<b>Signature:</b>

typescript
item_category3?: string;

Item.item_category4

<b>Signature:</b>

typescript
item_category4?: string;

Item.item_category5

<b>Signature:</b>

typescript
item_category5?: string;

Item.item_id

<b>Signature:</b>

typescript
item_id?: string;

Item.item_list_id

<b>Signature:</b>

typescript
item_list_id?: string;

Item.item_list_name

<b>Signature:</b>

typescript
item_list_name?: string;

Item.item_name

<b>Signature:</b>

typescript
item_name?: string;

Item.item_variant

<b>Signature:</b>

typescript
item_variant?: string;

Item.location_id

<b>Signature:</b>

typescript
location_id?: string;

Item.name

Warning: This API is now obsolete.

Use item_name instead.

<b>Signature:</b>

typescript
name?: string;

Item.price

<b>Signature:</b>

typescript
price?: Currency;

Item.promotion_id

<b>Signature:</b>

typescript
promotion_id?: string;

Item.promotion_name

<b>Signature:</b>

typescript
promotion_name?: string;

Item.quantity

<b>Signature:</b>

typescript
quantity?: number;