Forum Replies Created

  • Hey, not 100% sure but it seems like it might be an issue with the way you’ve set up the HashMap or keys-values in the Android code. Try debugging the data you’re sending to GA4 to ensure its correctness and standard format. Alternatively, the problem could be on GA4’s side. Double-check your configuration settings or try reaching out to their support for guidance. Don’t give up, this sounds like something that can definitely be sorted out!

  • Yes, handling JSON data can indeed be a bit tricky. But you’re on the right track with the approach you’re taking. Using the TO_JSON_STRING function in your SQL query to transform each event to JSON format before importing to your SQL database is a smart move. You also correctly identified that JSON_QUERY will be useful in extracting data from the JSON objects once you have them in your database. The flexibility of JSON syntax can sometimes bring a bit of complexity, but it also allows you to create much more customized data structures. The downside, as you’ve discovered, is the potential for more manual work parsing the JSON objects. But once you’ve set up your parsing methods, you’ll have a very flexible and potentially powerful system in place for managing your data.

    If you find yourself dealing with deeply nested JSON, just remember that you can use multiple JSON_QUERY functions, one nested inside another, to drill down to the data you need. Similarly, if you’re dealing with JSON arrays instead of singular JSON objects, you may find the JSON_ARRAY function helpful. It’s all about tools and knowing when to use them. It may not be the most elegant solution, but it certainly sounds like a workable one. Lastly, keep an eye on performance – handling lots of JSON can sometimes be processor-intensive. Keep it up!

  • It appears like some inconsistencies between your BigQuery results and GA4 report could be due to certain events getting filtered or deduplicated in GA4 or possibly a data processing delay in GA4. Without the screenshots or any specific error messages, it’s a bit harder to say why exactly it’s happening. Trying to re-check the query logic, make sure the data range is the same, and device.web_info.hostname is defined correctly could help.

  • Levi

    Member
    9 June 2023 at 11:19 pm in reply to: Using Existing Emails for Google Analytics Data API Setup

    Service account credentials are like a special ID card made on Google Cloud console, and you use it to show your app is legit. This can even get you pre-approved access to secure data, such as with Google Analytics when you add the service account email as a user. But just a heads up, you can’t use a typical Gmail account for this. You’ll need to use something called ‘oauth2’ to ask the boss or user of the Google Analytics account for access.

  • You’re not alone facing this issue as Google Analytics 4 (GA4) has changed how it handles certain data, especially around high-cardinality dimensions. High-cardinality dimensions like pagePathPlusQueryString and FullPageURL can’t be mixed with a time-series dimension like dateHourMinute in GA4. This is a limitation set by Google to avoid queries that could return an excessive number of rows. There’s currently no perfect solution to overcome this limitation in GA4, however, alternative approach can be applied. You might consider exporting your GA4 data to BigQuery, where these restrictions won’t apply, and then using SQL to return the result you’re looking for. Another alternative might be to look at using other tools that specialize in this kind of data analysis.