[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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-search': patch
|
||||
---
|
||||
|
||||
Captures the search term entered in the SearchBarBase as a `search` event.
|
||||
Reference in New Issue
Block a user