Snowplow Android and iOS Tracker version 5.2.0 released

We are pleased to announce the release of the Snowplow Android and iOS trackers, version 5.2.0.

On Android, the application install event can now track the install_referrer context entity that contains referral information retrieved from the Google Play Referrer library. This includes the referrer URL, click and install timestamps. To enable tracking the entity, you will need to have installAutotracking enabled and add the following line to the dependencies section of the build.gradle file in your app:

dependencies {
    ...
    implementation "com.android.installreferrer:installreferrer:2.2"
}

Tracker plugins provide a new filter callback that enables you to add custom logic that decides whether a given event should be tracked or not. This can for example enable you to intercept events automatically tracked by the tracker and skip some of them. For instance, the following code will apply to all screen view events and only accept ones with the name “Home Screen”, other screen view events will be discarded (snippet for Android):

plugin.filter(
    schemas = listOf(
        "iglu:com.snowplowanalytics.snowplow/screen_view/jsonschema/1-0-0", // screen view events
    )
) { event ->
    event.payload["name"] == "Home Screen"
}

Finally, you can now provide a configuration version for default configuration used in the remote configuration setup. This makes sure that the tracker is only reloaded when a newer configuration is available on the remote endpoint than the default one.

Enhancements

  • Android: Track install referrer details entity along with the application install event if available (#249)
  • Add a filter API to plugins to decide whether to track an event or not (#608 and #783)
  • Add version to default remote configuration and don’t update unless remote configuration is newer (#603 and #779)

Under the hood

  • iOS: Handle unprotected access to sending state in Emitter from concurrent threads (#774)

Snowplow Android Tracker version 5.2.0 is available on Maven Central .
The project’s source code can be found here .

Snowplow iOS Tracker version 5.2.0 is available on Cocoapods .
The project’s source code can be found here .

2 Likes