[Search] SearchBar Analytics tracking (#8656)
* test capture search bar events Signed-off-by: Emma Indal <emmai@spotify.com> * capture search bar events Signed-off-by: Emma Indal <emmai@spotify.com> * only run onChange method if provided, otherwise set term Signed-off-by: Emma Indal <emmai@spotify.com> * changeset Signed-off-by: Emma Indal <emmai@spotify.com> * unconditionally call analytics API Signed-off-by: Emma Indal <emmai@spotify.com> * update changeset to be less specific to GA Signed-off-by: Emma Indal <emmai@spotify.com> * move analytics tracking to SearchBarBase Signed-off-by: Emma Indal <emmai@spotify.com> * add search to key events Signed-off-by: Emma Indal <emmai@spotify.com> * capture types as analytics context attribute, only for SearchBar Signed-off-by: Emma Indal <emmai@spotify.com> * move AnalyticsContext to within SearchContextProvider Signed-off-by: Emma Indal <emmai@spotify.com> * refactor search tracking out to its own component Signed-off-by: Emma Indal <emmai@spotify.com> * captures not only google analytics Signed-off-by: Emma Indal <emmai@spotify.com>
This commit is contained in:
@@ -55,10 +55,11 @@ learn how to contribute the integration yourself!
|
||||
The following table summarizes events that, depending on the plugins you have
|
||||
installed, may be captured.
|
||||
|
||||
| Action | Provided By | Subject |
|
||||
| ---------- | -------------- | ----------------------------------------- |
|
||||
| `navigate` | Backstage Core | The URL of the page that was navigated to |
|
||||
| `click` | Backstage Core | The text of the link that was clicked on |
|
||||
| Action | Provided By | Subject |
|
||||
| ---------- | -------------- | --------------------------------------------------- |
|
||||
| `navigate` | Backstage Core | The URL of the page that was navigated to |
|
||||
| `click` | Backstage Core | The text of the link that was clicked on |
|
||||
| `search` | Backstage Core | The search term entered in any search bar component |
|
||||
|
||||
If there is an event you'd like to see captured, please [open an
|
||||
issue][add-event] describing the event you want to see and the questions it
|
||||
|
||||
Reference in New Issue
Block a user