-
Notifications
You must be signed in to change notification settings - Fork 5
Add GA tracking events #426
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
Open
aatuvai
wants to merge
9
commits into
main
Choose a base branch
from
aatuvai/10-24-2025-add-analytics-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Amplify deployment status
|
Contributor
Author
|
Let me know if you think some of these events are unnecessary to track. For example, I am not sure how extensively the built-in Inkeep analytics is used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds several events to be tracked in Google Analytics:
1.1.
inkeep_search_result_clicked1.2.
inkeep_assistant_source_item_clicked1.3.
inkeep_assistant_message_inline_link_openedsidebar_link_clicknavbar_link_clickbreadcrumbs_link_clicktoc_link_clickactive_page_link_clickinkeep_user_message_submittedsearchinkeep_assistant_negative_feedback_submittedandinkeep_assistant_positive_feedback_submittedinkeep_assistant_message_copiedinkeep_assistant_code_block_copiedIn order to create explorations for these events, the following parameters are expected to be registered as custom dimensions (dimension name followed by event parameter name):
clicked_link_urllatest_user_messagetotal_resultslatest_user_messagelatest_assistant_messagefeedback_reason_labelsfeedback_reason_detailscode_valueInkeepSearch.tsxandInlineSearch.tsxare edited to not include the message as their value. Also, theironChangecallback is removed. These lines serve no purpose, as the Inkeep search is opened in a self-contained modal when the input is clicked.The
handleChangefunction inuseInkeepSearchis split to two functions,handleSearchChangeandhandleChatChange. Previously entering a message in the Ask AI chat caused the search to trigger too, because they used the same event callback.