Skip to content

Conversation

@thiagopereira-vtex
Copy link
Contributor

This pull request introduces support for tracking and passing a searchId throughout the autocomplete product suggestion workflow. This enables the frontend to annotate rendered product lists and items with search-related metadata, which can be used for analytics or tracking user interactions with search results.

Search ID propagation and analytics instrumentation:

  • Added a searchId property to the product suggestion output (IProductsOutput in react/utils/biggy-client.ts) and to the autocomplete state (AutoCompleteState in react/components/Autocomplete/index.tsx). This ensures the search identifier is available wherever product suggestions are handled. [1] [2]
  • Updated the autocomplete component to store and propagate the searchId from product suggestions into its state, and to pass it down to the TileList component. [1] [2] [3] [4]
  • Enhanced the TileList component to accept a searchId prop and render it as data attributes (data-af-search-id, data-af-onimpression, data-af-onclick, etc.) on product list and item elements. This provides detailed instrumentation for analytics purposes. [1] [2] [3]

@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Sep 17, 2025

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

vtex-io-docs-bot bot commented Sep 17, 2025

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

@thiagopereira-vtex thiagopereira-vtex merged commit 367b901 into master Sep 18, 2025
9 of 13 checks passed
@thiagopereira-vtex thiagopereira-vtex deleted the feat/TIS-302 branch September 18, 2025 12:25
@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Sep 18, 2025

Your PR has been merged! App is being published. 🚀
Version 2.18.4 → 2.18.5

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.search@2.18.5

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants