Skip to content

Conversation

@vid277
Copy link
Contributor

@vid277 vid277 commented Apr 1, 2025

image

Object.keys(lastMessage)[0] || "00000000-0000-0000-0000-000000000000";

await trieveSDK.sendAnalyticsEvent({
event_name: `site-followup_query`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that either this one or the one before is not a followup but rather an initial suggestion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should track these too


await trieveSDK.sendAnalyticsEvent({
event_name: `site-followup_query`,
event_type: "followup_query",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't create a new event_type just use the click event with that name

client.prefetchQuery(
popularSuggestedQueriesQuery(trieve, filters, page + 1),
);
}, [page]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filters should be in the dependency array

@densumesh densumesh force-pushed the vs/shopify-feature-popular-follow-up branch from 3b27d6f to 104f077 Compare April 3, 2025 03:43
@densumesh densumesh merged commit dfc7742 into main Apr 3, 2025
11 checks passed
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.

5 participants