Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android InstallReferrerDetails: install_begin_timestamp & referrer_click_timestamp always wrong and install_begin_timestamp often missing #687

Closed
davidher-mann opened this issue May 6, 2024 · 2 comments · Fixed by #691

Comments

@davidher-mann
Copy link

We came across that install_begin_timestamp and referrer_click_timestamp are always wrong, since the Snowplow SDK assumes that the Google Play installreferrer API response is in milliseconds but it is actually in seconds since epoch.

As you can see in this screenshot, I was able to proof this. I corrected the install_begin_timestamp through multiplying it by 1000 and got the correct timestamp.
timestamp issue proof from BigQuery

Source from the official API documentation regarding the response format

  • install_begin_timestamp: The timestamp, in seconds, of when a referrer click happened (both client- and server-side)
  • referrer_click_timestamp: The timestamp, in seconds, of when an installation began (both client- and server-side)
    https://developer.android.com/google/play/installreferrer

Related file:
https://github.com/snowplow/snowplow-android-tracker/blame/07536ea8db236e8f6efd74b07f3af901a136846e/snowplow-tracker/src/main/java/com/snowplowanalytics/core/tracker/InstallReferrerDetails.kt#L70-L71

Further more, the install_begin_timestamp is missing for about 30% of installs (sample size ~145k installs on Android 8 and higher).We are running InstallReferrer package to v2.2 and Snowplow Tracker versions 5+
missing install_begin_timestamp

@mscwilson
Copy link
Contributor

thanks for the report 😵

@mscwilson
Copy link
Contributor

@davidher-mann is it just the install_begin_timestamp missing in those 30% of installs, or the referrer_click_timestamp as well? Do you know anything more about the events where it's missing, maybe about device?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants