-
Notifications
You must be signed in to change notification settings - Fork 151
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
feat: add analytics for Inkeep #2845
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks good to me!
@danieltprice have you got a chance to check new events in the analytics dahboard? |
logEventCallback: (event) => { | ||
const { eventName, properties } = event; | ||
if (eventName === 'chat_message_submitted') { | ||
sendGtagEvent(eventName, { text: properties.content }); |
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.
sendGtagEvent(eventName, { text: properties.content }); | |
sendGtagEvent('AI Chat Message Submitted', { text: properties.content }); |
logEventCallback: (event) => { | ||
const { eventName, properties } = event; | ||
if (eventName === 'search_query_submitted') { | ||
sendGtagEvent(eventName, { text: properties.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.
sendGtagEvent(eventName, { text: properties.query }); | |
sendGtagEvent('Search Query Submitted', { text: properties.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.
@saimonkat Trying to standardize on this format for event names, otherwise LGTM
This PR adds analytics for Inkeep:
search_query_submitted
chat_message_submitted
Steps to test
console.log
s for events:Preview