Commit Graph

44 Commits

Author SHA1 Message Date
Frank Rotermund c2108a2178 MESSENGER-2762 Initial Merge 2022-03-17 15:51:23 +01:00
Doug 6ab08067bd Move Analytics from Managers to Modules. 2021-12-16 17:01:23 +00:00
Doug e64cda1bb8 Add an AnalyticsService to handle account data. 2021-12-16 17:01:23 +00:00
Doug 230e6038b5 Fix mutability on AnalyticsSettings. 2021-12-16 17:01:23 +00:00
Doug e642c7417e Address most PR comments.
Update Podfile.lock
2021-12-16 17:01:23 +00:00
Doug a46fbf68e8 Leave analytics client running on sign out.
Only identify with a running session.
2021-12-16 17:01:22 +00:00
Doug e160d8dc59 Add tap/click event. Improve Swift/ObjC bridging. 2021-12-16 17:01:22 +00:00
Doug 518ba22c85 Add accessibility labels/hints. Fix tests. Show analytics prompt to everyone. 2021-12-16 17:01:22 +00:00
Doug ecd4bbd63b Move string formatting to Tools.
Revert contacts tracking from MatrixKit.
Final tweaks before PR.
2021-12-16 17:01:22 +00:00
Doug 299cc8bc74 Migrate doug/5035_posthog from MatrixKit. 2021-12-16 17:01:22 +00:00
Doug 2ddb17ec7b 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 2879430a8c Abstract PostHog out of the Analytics client. 2021-12-16 16:59:45 +00:00
Doug 47348b7f34 Add AnalyticsScreenTimer and track more screens.
Update Analytics with new methods in MXAnalyticsDelegate.
2021-12-16 16:59:45 +00:00
Doug b7a4e5c0d3 Use custom generated Swift events.
Add analytics PerformanceTimer event.
2021-12-16 16:59:45 +00:00
Doug 0c40ffd825 Update MXAnalyticsDelegate 2021-12-16 16:59:45 +00:00
Doug d43bf82bca 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 0b08bddc76 Remove cocoapods-keys. Use UUID for analytics.
Make configuration optional.
2021-12-16 16:59:45 +00:00
Doug 7a683870ca Add specific methods to track analytics and test generated event types. 2021-12-16 16:59:45 +00:00
Doug eb36107b59 Update to PostHog 1.4.4 2021-12-16 16:59:45 +00:00
Doug 56956ba7b1 Add missed MXLogger calls in Analytics. 2021-12-16 16:59:45 +00:00
Doug b52a83e171 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 efdbdcd117 Begin migration from Matomo to PostHog
Add CocoaPods-Keys.
2021-12-16 16:59:26 +00:00
Phl-Pro df8ff2b587 Merge branch 'develop' into phlpro/4722_objc_headers 2021-11-05 14:41:36 +01:00
SBiOSoftWhare 1d3cacc5bb Weakify strong reference delegates. 2021-10-29 12:23:06 +02:00
Philippe Loriaux eaa2450be7 Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
Doug cbd8ef3a3c Track an analytics value on accept/decline of an identity server. 2021-10-05 17:19:19 +01:00
Stefan Ceriu a8b0e8700e 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 4e84d8b2ec MXProfiles: Track time to display a message from its notification 2020-11-11 22:49:46 +01:00
manuroe 9ba7951495 Fix Steve's comment 2020-11-05 14:52:07 +01:00
manuroe 598b517321 Analytics: Add Matomo screenshots link 2020-11-05 14:03:38 +01:00
manuroe 29011f1793 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 51966926d9 Remove MXDecryptionFailureDelegate in flavor of agnostic MXAnalyticsDelegate 2020-11-05 12:09:10 +01:00
manuroe da8c7f2ae9 MXAnalyticsDelegate: Replace trackLaunchScreenDisplayDuration with new agnostic method 2020-11-05 09:44:18 +01:00
manuroe df286a127c * MXAnalyticsDelegate: Make it fully agnostic on tracked data. 2020-11-05 09:41:21 +01:00
manuroe c726c6d716 Analytics: Fix analytics in order to track performance improvements
Forgot to commit one line
2020-11-04 21:32:06 +01:00
manuroe 5e889c319b 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 4995d71334 Remove old AppDelegate imports. 2020-08-31 19:38:06 +02:00
manuroe 4df9602122 BuildSettings: Integrate Matomo 2020-07-31 09:15:57 +02:00
fridtjof cfed0d381c Complete the migration code 2019-05-23 22:07:04 +02:00
fridtjof 8699558885 (Almost) fix the Matomo migration code 2019-05-23 22:06:45 +02:00
fridtjof 29ba939bc8 Rename PiwikTracker to MatomoTracker and update to version 6.0.0 2019-05-23 22:05:06 +02:00
fridtjof 2839a24058 make use of Obj-C's modern syntax for literals and subscripting 2019-01-08 00:24:11 +01:00
manuroe ac644474cf MXRoomState: Apply new MXRoomMembers property 2018-07-12 00:19:48 +02:00
SBiOSoftWhare fc1c15599f Create managers folder 2018-07-10 10:21:20 +02:00