Skip to content

Set up For-You recommendations

https://marqo-ai.slack.com/archives/C0644SWRZGE/p1766470510634219?thread_ts=1766469103.826769&cid=C0644SWRZGE

Two steps:

  1. Enable tracking events in pixel with a 1-line config - this adds additional CF expense for Durable Objects which is why I did not enable it by default and only opted to enable it on customer request - example here: https://github.com/marqo-ai/pixel/blob/main/cloudflare/src/customer-config-data.ts#L25 - once merged the change has to be deployed via this GH pipeline - https://github.com/marqo-ai/pixel/actions/workflows/cloudflare-ci-deployment-pipeline.yml - this is trigerred on merge automatically but needs approval for the prod deployment, this change is safe to just let through
  2. add the pixel id to to the index config in ddb - https://github.com/marqo-ai/cloud_control_plane/blob/main/components/ecom_utils/ecom_utils/index_settings_service/index_settings_model.py#L214-L217 - once copied over to CF the recommendations should be available.

You can test this with the ecom-tester, you'll need a valid userId - obtain this from their website using dev tools, or just use the pixel-tailer or duckdb to pinpoint a search event that you initiated, then fill in the userId into the ecom-tester's input, do a search and then click on a product to bring out the slide-out panel which will include recommendations.