list-ulSuggestion Bar

The SuggestionBar is a widget that displays several suggestions. Typically used on a PDP, it currently displays hard-coded suggestions but there are future plans to make them more dynamic and model generated. It supports an optional animation mode that is tracked in analytics events.

Analytics Event Triggers

Widget Rendered

This trigger occurs when the widget is rendered on the screen. It will still trigger if the widget is covered up by other content or is hidden through the use of opacity or other visual tricks.

Event: [Spiffy] Chat Component Visible

Property
Value

chat_component_visible.chat_component

suggestion_bar

chat_component_visible.animated

<animated>


Widget Clicked

This trigger occurs when the user clicks on one of the suggestion buttons triggering its interaction.

Two events fire on click.

Event 1: [Spiffy] Chat User Message Input

Property
Value

chat_user_message_input.message_id

<message_id>

chat_user_message_input.message_role

user

chat_user_message_input.message_type

query_typed

chat_user_message_input.message_metadata

{ "content": <text of button>, "created_at": <current_time>, "user_typed": false }

Event 2: [Spiffy] Chat Component Expanded

Property
Value

chat_component_expanded.message_metadata

{ "trigger_location": "top_reviews_snippet" }


Widget Hovered

This trigger occurs when the user hovers their mouse over the widget triggering it to go into its expanded state. Not currently emitting any events.

None — not currently tracked.


Suggestion Scrolled

This trigger occurs when the user scrolls the suggestions manually. Not currently emitting any events.

None — not currently tracked.

Last updated