-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(headless): change citation from custom to click event (#4492)
[SVCC-4170](https://coveord.atlassian.net/browse/SVCC-4170) Change Citation Click from Custom Event to Click Event: - Bump `coveo.analytics` to `2.30.39`. - Use the new `logGeneratedAnswerCitationClick` event. - This new method make the click event assume a `document position` of 1 for the purpose of the click event and click rank. - Changes are made both in the search page client as well as the insight client. Future click event example: ``` { "language": "en", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36", "collectionName": "default", -- Deprecated "documentAuthor": "unknown", -- Available in stream response? "documentPosition": 1, -- Hardcoded to 1 "documentTitle": "Relevance Generative Answering", -- In stream API response "documentUri": "https://levelup.coveo.com/learn/courses/relevance-generative-answering", -- In stream API response as URI "documentUriHash": "bK2L18lxLvsUB5h4", - Depecreated "documentUrl": "https://levelup.coveo.com/learn/courses/relevance-generative-answering", -- In stream API response as Click URI "sourceName": "Level Up", -- Needs to be added stream API response "queryPipeline": "Customer Zero Community search - RGA Update V3", "originContext": "buildersearchpage", -- Same as custom event "originLevel1": "Connect RGA V3 Testing", -- Same as custom event "originLevel2": "default", -- Same as custom event "originLevel3": "https://search.cloud.coveo.com/builder/", -- Same as custom event "customData": { "coveoHeadlessVersion": "2.78.0", -- Inherited "generativeQuestionAnsweringId": "queryStream01_coveosearch_1ffa0550-3d4b-4d09-9574-8c4225b1edf9", --TO ADD"contentIDKey": "permanentid", --TO ADD"contentIDValue": "29bd12f1-12fb-4ac4-9463-66e37a0cb686", "coveoAtomicVersion": "2.77.1" -- Inherited --From Stream API"citationId": "42.20035$https://levelup.coveo.com/learn/courses/relevance-generative-answering-3541ae00-8d76-4b85-aa02-75478f4b6a6e", }, "facetState": [], "anonymous": false, "clientId": "d4a6b215-241a-40f2-ad82-4890895843ad", "actionCause": "openGeneratedAnswerSource", -- New actionCause "searchQueryUid": "6549c762-4b4d-466d-ba16-bfe3b8d21928" -- From search event } ``` [SVCC-4170]: https://coveord.atlassian.net/browse/SVCC-4170?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
15 changed files
with
149 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.