snowplow / snowplow-android-tracker

Snowplow event tracker for Android. Add analytics to your Android apps and games
http://snowplowanalytics.com
Apache License 2.0
110 stars 63 forks source link

Truncate URL scheme for page_url and page_refr properties (close #616) #617

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

Issue #616

This PR addresses the issue that the URL scheme may be quite long for deep links but the atomic events schema limits the max length of the scheme to 16 characters for page_url and page_refr properties, see here. This can lead to validation errors when deep links with longer URL schemes are tracked.

To solve the issue, the tracker now truncates the URL scheme in page_url and page_refr properties to 16 chars. This only affects the values in the atomic properties, the URLs in the deep link event and context entity are not truncated.