code-comparePost Interaction Comparison Widget

This widget replaces both Social Proof and Chat Preview after the user has interacted with the model. It conditionally renders if the last turn from the model includes exactly 2 product cards and it assumes that it should compare them.

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

embedded_widget


Widget Suggestion Clicked

The trigger fires when the user clicks on one of the rendered suggestion buttons.

Two events fire on suggestion click.

Event 1: [Spiffy] Chat Suggestion Clicked

Property
Value

chat_suggestion_clicked.message_id

<message_id>

chat_suggestion_clicked.message_role

user

chat_suggestion_clicked.message_type

suggestion_clicked

chat_suggestion_clicked.message_metadata

{ "content": <suggestion_text>, "created_at": <current_time>, "category": "no_context", "is_answer": false, "display_location": "chat_preview" }

Event 2: [Spiffy] Chat Component Expanded

Property
Value

chat_component_expanded.message_metadata

{ "trigger_location": "chat_preview" }


Widget Clicked

This trigger fires when the user clicks anywhere in the widget except one of the suggestion buttons.

Event: [Spiffy] Chat Component Expanded

Property
Value

chat_component_expanded.message_metadata

{ "trigger_location": "chat_preview" }


Widget Hovered

This trigger fires when the user hovers over the widget. It does not currently emit any analytics events.

None — not currently tracked.


This trigger fires when the user clicks on one of the text links embedded within the rendered text. It does not currently emit any analytics events.

None — not currently tracked.

Last updated