empathyco / x

Commerce Search & Discovery frontend web components
Apache License 2.0
80 stars 21 forks source link

fix: send origin in query tagging #1585

Closed lauramargar closed 3 months ago

lauramargar commented 3 months ago

Pull request template

When you click on a brand recommendation, the origin param is not included in the query tagging. That's because the `BaseEventButton` used on the `QueryPreviewButton` component emits `UserAcceptedAQueryPreview` event without any feature param in the metadata so that the origin couldn't be created. To fix it, we are going to pass the origin through a prop and it will be added to the event metadata. ## Motivation and context

Type of change

What is the destination branch of this PR?

How has this been tested?

Click on a brand recommendation and check if the origin customer:no_query is sent in the query tagging.

Checklist:

herrardo commented 3 months ago

Germán 👀