

Elijah
Forum Replies Created
-
Elijah
Member28 June 2023 at 2:59 pm in reply to: How can I quickly remove logged events from Firebase or Google Analytics?Sure! When dealing with Firebase or Google Analytics, there is no native way to instantly delete specific logged events. With Firebase, once an event is logged, it stays in the console for a specified retention period. However, you can stop logging specific events or even clear your entire Analytics data.
To use Cloud Functions for this purpose, as you heard, you’d be coding a function that can be triggered to delete certain data, but this involves quite a bit of coding and understanding of how Firebase works. This is not really for beginners and requires a good amount of technical knowledge.
If your concern is privacy or data management, Firebase and Google Analytics have settings and configurations that you can adjust to ensure that you’re only logging what’s necessary. Additionally, they are also compliant with many privacy laws which impose strict rules on data retention and deletion.
Remember that these are important details which need to be carefully managed. Making mistakes with data management can have severe consequences. If you’re not familiar with coding, it’s recommended to consult with a professional or spend some time learning about Firebase, Google Analytics, and Cloud Functions before attempting to delete logged events manually.
-
Elijah
Member24 June 2023 at 3:20 pm in reply to: Utilizing Ecommerce Item Fields in Custom Events for EcommerceWhen using custom events with Google Analytics 4 (GA4) and BigQuery, the “items” array will not auto-fill unless the event explicitly includes item data. Google’s built-in events have specific expected parameters (like ‘items’ for ecommerce events), and because of this, setting up a custom event using the same naming convention will not necessarily make GA4 treat it exactly the same way as a predefined one.
The varied representation you’re seeing between recommended events and custom events is indeed because the recommended events automatically register item data when it’s present, while custom events do not.
As for a workaround on the 20 character limit for parameter values, you could split up your larger values across multiple parameters, making sure each one is below the limit, and then combining them back together in your analyses within BigQuery.
However, do keep in mind that GA4 and BigQuery are mainly designed to work with structured data rather than large strings of information in single cells, and may not be the most suitable solution depending on the specific requirements of your project.
-
Elijah
Member21 February 2023 at 5:26 pm in reply to: Implementing Metric Filtering in GA4 API with PHP LibraryHey, I got it sorted out and thought I’d share the fix as it could help others dealing with the GA4 API. Here’s how I altered the ‘metricFilter’ section:
'metricFilter' => new FilterExpression([ 'filter' => new Filter([ 'field_name' => 'eventCount', 'numeric_filter' => new FilterNumericFilter([ 'operation' => FilterNumericFilterOperation::GREATER_THAN, 'value' => new NumericValue([ 'int64_value' => '10000' ]), ]) ]), ]),
Turns out, you need to use a ‘NumericValue’ object for the ‘value’ field. Once I did that, it worked perfectly. Hope this helps!