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

No geolocation context columns in BigQuery when enabled in config #195

Open
jkreiz opened this issue Apr 20, 2023 · 5 comments
Open

No geolocation context columns in BigQuery when enabled in config #195

jkreiz opened this issue Apr 20, 2023 · 5 comments
Assignees

Comments

@jkreiz
Copy link

jkreiz commented Apr 20, 2023

Describe the bug
We are not seeing contexts_snowplowanalytics_snowplow_geolocation_context_1_0_0 columns in BigQuery, despite having set geoLocationContext to true in our Snowplow config. We also have Mixpanel implemented and are getting location data there.

To Reproduce

  1. Using Snowplow Quickstart for BigQuery
  2. Implement Snowplow for React Native via Expo Bare Workflow
  3. Set geoLocationContext to true

Expected behavior
When logging events we should see contexts_snowplowanalytics_snowplow_geolocation_context_1_0_0 columns in BigQuery

Screenshots
Config
Screenshot 2023-04-20 at 12 52 03 PM

Available Contexts
Screenshot 2023-04-20 at 12 51 39 PM

Smartphone (please complete the following information):
All devices, but one example:

  • Device: iPhone15,2
  • OS: ios 16.1
  • Browser: Native
@matus-tomlein
Copy link
Contributor

Hi @jkreiz, thanks for reporting the bug!

I think this is a problem in the underlying iOS tracker which does not automatically track the geolocation context even in case the TrackerConfiguration.geoLocationContext property is enabled. Instead, it's waiting for the context properties to be added manually through SubjectConfiguration which is not possible in the React Native tracker.

We will look into the problem and see how we can address it.

@jkreiz
Copy link
Author

jkreiz commented Apr 21, 2023

Thanks @matus-tomlein -- we have an Android build as well, but it's all going to the same table with no geolocation context. Does Android also rely on SubjectConfiguration, or is this a separate issue?

@matus-tomlein
Copy link
Contributor

Hi @jkreiz, on Android, the tracker should be able to automatically fill the geolocation context, so you should be able to see it in the events. If this is not the case, there might be another issue on the Android tracker. Can you please confirm that you don't see the geolocation context for all events on Android where you have it enabled in the tracker? We will investigate this as part of this effort as well.

@jkreiz
Copy link
Author

jkreiz commented Apr 24, 2023

@matus-tomlein confirmed, we don't see the geolocation context for any events on Android, even though it is enabled in the tracker.

@vipulrawat
Copy link

Hello, asking a tangential question, does setting geoLocationContext = true will ask the user for location permissions? I am not able to find information on how geoLocationContext collects information in the documentation. I feel that it should ask for the permissions and setting it true will thus also require changing the permission files if the app otherwise does not use locations.

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

No branches or pull requests

3 participants