Commit Graph

44 Commits

Author SHA1 Message Date
Frank Rotermund 37d97d09db MESSENGER-2762 Initial Merge 2022-03-17 15:51:23 +01:00
Doug ecd94547b7 Move Analytics from Managers to Modules. 2021-12-16 17:01:23 +00:00
Doug 00b2e314d3 Add an AnalyticsService to handle account data. 2021-12-16 17:01:23 +00:00
Doug d6b3b1172e Fix mutability on AnalyticsSettings. 2021-12-16 17:01:23 +00:00
Doug 8acde2fda4 Address most PR comments.
Update Podfile.lock
2021-12-16 17:01:23 +00:00
Doug 56883906d8 Leave analytics client running on sign out.
Only identify with a running session.
2021-12-16 17:01:22 +00:00
Doug 02744b7577 Add tap/click event. Improve Swift/ObjC bridging. 2021-12-16 17:01:22 +00:00
Doug 6001c9f0f5 Add accessibility labels/hints. Fix tests. Show analytics prompt to everyone. 2021-12-16 17:01:22 +00:00
Doug 1f6b19eed3 Move string formatting to Tools.
Revert contacts tracking from MatrixKit.
Final tweaks before PR.
2021-12-16 17:01:22 +00:00
Doug 0815a84fb3 Migrate doug/5035_posthog from MatrixKit. 2021-12-16 17:01:22 +00:00
Doug b3194a0fe9 Support link/html in analytics prompt strings.
Show the new prompt to everyone, even if they previously opted out.
Add docs to Analytics.
2021-12-16 17:01:22 +00:00
Doug 4f28bd395e Abstract PostHog out of the Analytics client. 2021-12-16 16:59:45 +00:00
Doug 296f444b9e Add AnalyticsScreenTimer and track more screens.
Update Analytics with new methods in MXAnalyticsDelegate.
2021-12-16 16:59:45 +00:00
Doug dca7739b19 Use custom generated Swift events.
Add analytics PerformanceTimer event.
2021-12-16 16:59:45 +00:00
Doug d7d2211cad Update MXAnalyticsDelegate 2021-12-16 16:59:45 +00:00
Doug cea6cd145b Use matrix-analytics-events generated stubs (locally for now).
Track screens, removing any that aren't part of the schema.
2021-12-16 16:59:45 +00:00
Doug b5f3a56666 Remove cocoapods-keys. Use UUID for analytics.
Make configuration optional.
2021-12-16 16:59:45 +00:00
Doug 84fdd7585c Add specific methods to track analytics and test generated event types. 2021-12-16 16:59:45 +00:00
Doug 72f75cc36d Update to PostHog 1.4.4 2021-12-16 16:59:45 +00:00
Doug 643b31fc90 Add missed MXLogger calls in Analytics. 2021-12-16 16:59:45 +00:00
Doug f45b4644c3 Don't read analytics opt in status from account data.
Update PostHog to 1.4.3.

Add tests for prompt type.
2021-12-16 16:59:45 +00:00
Doug 8ec27e8579 Begin migration from Matomo to PostHog
Add CocoaPods-Keys.
2021-12-16 16:59:26 +00:00
Phl-Pro ea322e1526 Merge branch 'develop' into phlpro/4722_objc_headers 2021-11-05 14:41:36 +01:00
SBiOSoftWhare 9568c29401 Weakify strong reference delegates. 2021-10-29 12:23:06 +02:00
Philippe Loriaux af20d24960 Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
Doug a50027e76d Track an analytics value on accept/decline of an identity server. 2021-10-05 17:19:19 +01:00
Stefan Ceriu b00d07ffca Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351
* Replaced NSLog() and print() usages with MXLog.debug()
* Added swiftlint rules for NSLog(), print(), println() and os_log()
* Escape paths used to run script build phases for swiftlint and swiftgen
2021-06-03 11:30:07 +03:00
manuroe ec05b04747 MXProfiles: Track time to display a message from its notification 2020-11-11 22:49:46 +01:00
manuroe c545bbcb23 Fix Steve's comment 2020-11-05 14:52:07 +01:00
manuroe 37e86dde21 Analytics: Add Matomo screenshots link 2020-11-05 14:03:38 +01:00
manuroe 20f4a0e90f Analytics: Remove the "iOS." prefix
We do not need this differentiator anymore. There is a dedicated app id in Matomo.
2020-11-05 12:28:19 +01:00
manuroe 6eba90bfbe Remove MXDecryptionFailureDelegate in flavor of agnostic MXAnalyticsDelegate 2020-11-05 12:09:10 +01:00
manuroe 8ea161fade MXAnalyticsDelegate: Replace trackLaunchScreenDisplayDuration with new agnostic method 2020-11-05 09:44:18 +01:00
manuroe 941fe08cd5 * MXAnalyticsDelegate: Make it fully agnostic on tracked data. 2020-11-05 09:41:21 +01:00
manuroe dc2c85a0d8 Analytics: Fix analytics in order to track performance improvements
Forgot to commit one line
2020-11-04 21:32:06 +01:00
manuroe a159e68d5d Analytics: Fix analytics in order to track performance improvements
It is probably broken since May 2019 and Matomo 6. Only the first value (StorePreload) was sent .
2020-11-04 15:46:56 +01:00
SBiOSoftWhare bc6306bda9 Remove old AppDelegate imports. 2020-08-31 19:38:06 +02:00
manuroe abc7875c25 BuildSettings: Integrate Matomo 2020-07-31 09:15:57 +02:00
fridtjof a020dd0a58 Complete the migration code 2019-05-23 22:07:04 +02:00
fridtjof 29adbc1950 (Almost) fix the Matomo migration code 2019-05-23 22:06:45 +02:00
fridtjof d2ef366d4c Rename PiwikTracker to MatomoTracker and update to version 6.0.0 2019-05-23 22:05:06 +02:00
fridtjof a310741536 make use of Obj-C's modern syntax for literals and subscripting 2019-01-08 00:24:11 +01:00
manuroe 41480a5e56 MXRoomState: Apply new MXRoomMembers property 2018-07-12 00:19:48 +02:00
SBiOSoftWhare e00fba775a Create managers folder 2018-07-10 10:21:20 +02:00