Definition
A category flyout is a window that appears when a user hovers over different category options from the main browse menu. Each change in category shown in the window will require its own API call, as the desired category changes.Parameters
event-type
Value: viewCategoryMenu
Description: Indicates to the API that this is a category flyout event.
Required: Yes
page-id
Description: An identifier that tells Criteo which placements to return for the ad request. Placements are instantiated by your Technical Account Manager depending on your desired ad configuration. Below are the standard page-ids for this page type:
- In Americas: Typically follows the structure
[event-type]_API_[environment], e.g.,viewCategoryMenu_API_desktop,viewCategoryMenu_API_mobile,viewCategoryMenu_API_android,viewCategoryMenu_API_iOS. - In EMEA: Typically follows the structure
[event-type]Api[environment], e.g.,viewCategoryMenuApiDesktop,viewCategoryMenuApiMobile,viewCategoryMenuApiAios,viewCategoryMenuApiAa.
category
Description: The category or taxonomy of the page that the user is browsing. This value should match the product_type_key value in the products feed.
Examples:
- Category ID, full breadcrumb style:
123>4567>89012 - Category ID, end-node-only style:
89012 - Category name style:
Computing>Keyboards and Mice>Mice
page-uid
Description: This value is returned within the response of the initial call made on page load. By storing this value and including it in subsequent viewCategoryMenu event calls, Criteo is able to link the events to the initial ad request.
Example: 545d9a70-f096-4568-b4b9-8f2f32a452d4
Example Workflow forpage-uid :
- User arrives at the homepage, generating a
viewHomead request with a uniquepage-uid. - User browses/hovers over categories, generating
viewCategoryMenucalls. - Each
viewCategoryMenucall must include the initialpage-uidfrom the firstviewHomecall.
Sample Calls
The header values in the sample calls are illustrative. Make sure to replace them with the appropriate values for your implementation.