Skip to content

Containment tracking and user agent fix

Compare
Choose a tag to compare
@defagos defagos released this 09 Mar 15:24
· 509 commits to master since this release

Container tracking

  • Proper built-in container tracking has been implemented, with support for all UIKit standard containers (UITabBarController, UIPageViewController, UISplitViewController and UINavigationController). This ensures that tracking is correctly made when the application returns from background or when the user changes the currently active tab.
  • Custom containers can implement the SRGAnalyticsContainerViewTracking protocol to achieve the same result.
  • If existing applications were implemented special behavior to support UIKit standard containers, they should simply remove the associated code to avoid sending more page view events than necessary (pages views should be tested again throughout the application before delivering an update to production).

Improvements

  • A configuration parameter has been added to force analytics to be collected within the production or pre-production environments. This addresses very special needs, for example nightly distribution via TestFlight. In general, you should stick with the default automatic behavior, which determines the environment based on the application bundle.

Fixes

  • Update comScore to version 6.2 to fix iTunesConnect submission issue due to UIWebView deprecation.
  • The TagCommander user agent was missing at startup. This made Mapp (previously Webtrekk) reports incorrectly report about Generic versions instead of the proper system version. This issue has been fixed.