InteractionBulkIn
- dataType: array · Datarequired
- typeenumconst:product_detail_page_viewrequired
Used when a user views the detail page of a product. Viewing a product detail page usually indicates a user is interested in the product to certain degree, especially, when the
durationof the page view is long. Whendurationof the page view is very short (< 5 seconds),product_detail_page_viewmay indicate neural or negative interest in the product.values- product
_detail _page _view
- anonymousType: string · Anonymous Id
_id max length:1024A pseudo-unique substitute for the User Id. We use
anonymous_idto identify a visitor who has not signed in.anonymous_idcan be implemented using mechanisms such as cookies or browser localStorage. Ifanonymous_idis not given, we will default it toSHA1(<API key>:<IP address>:<user agent>:<date>). When a visitor signs in and theuser_idandanonymous_idare both present, theanonymous_idwill be linked to theuser_idalong with the past interactions associated with it. - contextType: object · Context
Dictionary of extra information that provides useful context about an interaction. We use context information to make recommendations tailored not only for each user, but also for their current browsing context. For example, a user browsing on a desktop may have different browsing behavior than a user browsing on mobile phone. As another example, a user who gets to the site via a certain campaign you run on Facebook may have very different interests than a user who visits your site directly.
Context information is also useful for personalization for entirely new visitors, as we can immediately personalize their experiences based on their context alone (e.g. the referrer or the campaign they clicked through).
Example:
{"context": { "campaign": { "name": "spring_sale", "source": "Google", "medium": "cpc", "term": "running+shoes", "content": "textlink" }, "truncated_ip": "1.1.1.0", "locale": "en-US", "region": "US East", "page": { "url": "https://example.com/miso-tshirt-123ABC", "referrer": "https://example.com/", "title": "My Product Page" }, "user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0)" }, "custom_context": { "other_context_var_1": "value_1", "other_context_var_2": "value_2" } } - durationType: number · Duration
How long (in seconds) the user stayed on this page, or consumed (listened, read, or watched) a product. This field is optional, but it's very important in scenarios where consumption duration matters, including
product_detail_page_view,category_page_view,watch,listen, andread. For example, if a user only views or consumes a product for less than 5 seconds, that user is probably not interested in the product. On the other hand, if a user stays on a page for a while, it usually means they are seriously engaging with or considering the product. Whendurationis absent, we will use the timestamp of the next interaction to infer a rough duration value.Example:
{"duration": 61.5} - misoType: string · Miso IdFormat: uuid
_id Miso-generated unique Id for each recommendation or search result. Maintaining this Id for subsequent page views is important to Miso's performance, as we use
miso_idto track and fine-tune the performance of personalization and search results. When a user clicks on a recommendation or search result, you should pass the associatedmiso_idto the next page view, and associate themiso_idwith the interactions that take place on the page (e.g.product_detail_page_view,add_to_cart,add_to_collection,like, etc.). In this way, Miso will learn which recommendations work and which didn't.Example:
{"misoId": "123e4567-e89b-12d3-a456-426614174000"} - productType: array string[] · Product Group Ids
_group _ids max length:512The product groups the user is interacting with. You only need this field if you model product variants using
product_idandproduct_group_id(see Product API). If so, you should use this field, when a user is interacting with a product group rather than a specific product variant, for example, when the user is viewing the master page of a T-shirt (i.e. a product group), but has not selected the specific size or color (i.e. a product variant) yet.In such situations, the
product_idis not applicable because we only know the user is interested in this T-shirt (a product group), but don't know which particular product variant the user is interested in. Therefore, we useproduct_group_idsto capture such interactions in place ofproduct_ids.In the situations where specific
product_idsare available, for example, when user selected a particular size of the T-Shirt, useproduct_idsinstead.Example:
{"product_group_ids": ["123ABC"]} - productType: array string[] · Product Ids
_ids max length:512Products or content the user is interacting with. This field is required by almost all the interaction types. We use
product_idsto refer to the product / content records that you upload to Miso. Therefore, it is important to keep this consistent between the two datasets.Example:
{"product_ids": ["123ABC-BLACK", "123EFG-YELLOW"]} - timestampType: string · TimestampFormat: date-time
The ISO-8601 timestamp specifying when the interaction occurred. If the interaction just happened, leave it out and we will default to the server's time. If you're importing data from the past, make sure you provide a timestamp. It is recommended to include milliseconds in the timestamp to provide a higher time resolution.
Example:
{"timestamp": "2018-11-07T00:25:00.073876Z"} - userType: string · User Id
_id max length:512Identifies the signed-in user who performed the interaction. We will use
user_idto link Interaction records to your User records. Therefore, it is important to keep this consistent between the two datasets.For visitors who have not signed in, seeanonymous_id.
