TerraTracker 0.12.0

New features#

  • Remove some implicit tracking functions
  • Support deeplink with ads parameters such as: utm_medium, utm_term, utm_campaign, utm_content, utm_source
  • Renew session when access from deeplink

Changes#

SDK Supported#

Each event data now has two properties named sdkVersion, sdkID. If you are integrate TerraTracker into an SDK, you need to add these values to each tracking events.

If you are intergate into an application, please ignore these values.

Screen finish loading#

When your screen is ready to use, user can see its content and action on it. Please call this method to measure the loading time.

TerraTracker.getInstance(by: terraApp)?.sendFinishLoadingEvent(viewController: self)

Deeplink supported#

  • When your app is opened from an universal link or deep link, add this line to the below func in your AppDelegate. TerraTracker will renew tracking session and track utm data automatically
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
Tracker.application(app, open: url)
}

TrackerConfig validation#

appId now have to be follow by pattern \w{8}-\w{4}-\w{4}-\w{4}-\w{12}

Standardize event properties#

1. Cart Event

eventName now accept some enums listed by CartEventName

2. Open app from notification/deeplink

To track when your app is opened from notification or deep link, your entering ViewController should be configure with these values

name=TrackingConstants.ScreenName.externalSource
referrer=TrackingConstants.Referrer.externalSource/notification
contentType=TrackingConstants.ContentType.other

Bug fixes#

  • Fix invalid event data issues