Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. Mobile Native Trackers
  6. Migration guides
  7. Migration guide for Snowplow Android Tracker SDK from version 2.x to 3.0

Migration guide for Snowplow Android Tracker SDK from version 2.x to 3.0

This new release doesn’t introduce breaking changes with the previous 2.x version. The version 2.0 can be considered a transitory release because two different APIs were available for the developer: v1 API (deprecated) and v2 API (the new one). The version 3.0 doesn’t introduce changes to the v2 API but it completely remove the v1 API. Hence, this version introduces breking changes only for the developer that have instrumented the v2.0 using the old deprecated v1 API.

In this release we’ve marked as deprecated:

  • PageView event: this event has been designed for web tracking. Its role can be replaced on mobile with two different events: ScreenView event and DeepLinkReceived event. The first covers the need of tracking the screen visualized to the user by the app. The latter covers the case where the shown content is referred to an external url referral and we want to track that down, exactly like the PageView does in the web tracker.

In this release there are some breaking changes:

  • The v1 API has been removed from this new version of the trackers, which means the v1 components (Tracker, Emitter, Subject, Session) used to set up the tracker are no longer available. If you have already migrated your instrumentation to the v2 API there aren’t breaking changes.

  • The events can be built using the constructor and builder methods. The builder classes available with v1 are no longer available. If you already build events using events’ constructor suggested with the v2 API, there aren’t breaking changes.

  • Session callbacks have been removed. They will be reintroduced soon in one of the next minor versions. More details will be provided at the release.

  • Utilities or Utils methods, available in v1 API, have been removed.

If you’d like to learn more about Snowplow BDP you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.