Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search bar only analytics fix (#1555)
Fix the analytics for the search bar only assets When analyticsEventsEnabled was added to the SDK, the parameter order of the AnalyticsReporter constructor changed and it broke analytics for the search bar only assets. This caused analytics to only be sent if `analyticsOptions` was present in the config. The data sent was also messed up. Fix the parameter order so that it is the same as the regular SDK J=none TEST=manual Build the search bar only assets and test analytics with voice search and the clear button. See that analytics are properly sent even without analyticsOptions existing, and see that the data is now correct. Test `setAnalyticsOptIn` and confirm that it can disable analytics
- Loading branch information