-
Notifications
You must be signed in to change notification settings - Fork 235
feature(shopify): add followup query analytics #3661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vid277
commented
Apr 1, 2025

| Object.keys(lastMessage)[0] || "00000000-0000-0000-0000-000000000000"; | ||
|
|
||
| await trieveSDK.sendAnalyticsEvent({ | ||
| event_name: `site-followup_query`, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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]); |
There was a problem hiding this comment.
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
3b27d6f to
104f077
Compare