Custom fields for Stackdriver error reporting - stackdriver

Is there a way to send custom fields for Stackdriver error reporting?
There is a context field (https://cloud.google.com/error-reporting/docs/formatting-error-messages) but only with predefined fields.

Related

How to create custom alert in Google Analytics 4

I want to create a custom alert in Google Analytics according to this guide
But this functionality is available only for Universal Analytics properties. And I can't find the custom alerts section for my GA4 properties as well as for Firebase Analytics property. There is a similar thing - Custom Insights but looks like it's not possible to select your own events there as trigger. And I need these alerts for data coming from mobile apps (they are using Firebase Analytics). Is there any workaround, is it possible to create a custom alert for GA4?
Why do I need a custom alert in the first place? I want to have a notification when multiple users are not finishing the sign-up process.
At the moment, there are no ways to do it in interface. You can eventually build a your customized system that reads data in BigQuery every day and sends you an email based on the rules you have defined.

Define Google Analytics 4 custom dimensions via API

Is there a way to programmatically define custom dimensions using the Google Analytics Admin API (that works with GA4)?
I'm talking about defining the dimensions ahead of time so I can send them along with events, which is what you'd manually do in the Google Analytics user interface (under All events > Manage Custom Definitions). This is what I'd like to do programmatically. Once they're defined, sending these custom dimensions along with tracking events is easy enough (using gtag).
Apparently, this was possible in the previous version of the API, but that API says that it "does not support GA4 properties".
You already can programmatically define/create custom dimensions and metrics with the Google Analytics Admin API for GA4 properties.
Custom dimensions
Can be created with this method providing:
description
displayName
parameterName (it hasn't need to exist beforehand)
scope (User or Event)
Custom metrics
Can be created with this method providing:
description
displayName
measurementUnit
restrictedMetricType
scope (Metric_Scope_unspecified or Event)
Warning from Google: This is an early preview version of the API and
is subject to change. While we will try to notify you of upcoming
changes, you should expect to encounter breaking changes before the
APIs are publicly released.
Jan,
You are correct that the Google Analytics Management API V3 cannot be used to configure GA4 properties. The Analytics Admin API V1, which supports GA4, does not currently have methods to create custom metrics/dimensions.
I will update this question once we have more information on when this feature can become available.
Thanks,
Ilya
The Google Analytics Team

Adding analytics for specific fields in API Connect

I am currently facing an issue while logging specific field in API Connect analytics for SOAP Services.
There is a section in API Designer Analytics where you can define and specify existing Parameters for your API that can be used to gather analytics data about the API. For REST I have tried and I am getting specified fields in Analytics but for SOAP I am not getting.
I am using version 5.0.8.5

How can we avoid splitting the ecommerce_purchase event in firebase and send extra custom dimensions on product scope from gtm to GA?

how can we avoid splitting the ecommerce_purchase event in firebase and send extra custom dimensions on product scope from gtm to GA?
We have used option 2 in this guide, and send events to both firebase and google analytics via gtm: https://firebase.googleblog.com/2017/02/how-do-i-add-firebase-analytics-to-app.html
We send an event for ecommerce_purchase following this guide: https://developers.google.com/tag-manager/android/v5/enhanced-ecommerce#purchases
This does give us functioning enhanced ecommerce data in google analytics, but there are also some issues:
We also send some custom event parameters within the ecommerce_purchase event to firebase. As well as to google analytics.
The custom event parameters (sent as custom dimensions to GA) does not show up in GA.
An issue is that in firebase the ecommerce_purchase events are split in 2, "ecommerce_purchase" and "(not set)":
Google Tag Manager configuration:

Firebase Analytics: registering custom parameters in the console

I'm having trouble understanding what's the benefit of registering the custom parameters of a custom event in the Firebase Analytics console.
Is it for analyzing the data or for logging the data?
If I don't register the custom parameters, will the events still being logged successfully?
If I want to analyze the data in BigQuery, will I first have to register these parameters in the Firebase console?
If I'm using more custom parameters in my app than the "Global parameter reporting quota" of Firebase, then will these events still being logged? Or I might "lose" the data for these events?
I've read the documentation thoroughly but it's not clear how the custom parameters are being handled.
I will answer my questions since I now have a clearer picture:
TL;DR: If you want to analyze the custom parameters in the Firebase console, you first have to register them. If you want to analyze them in BigQuery, you don't have to register them, but you need to link your project to BigQuery before you start logging these events.
The events and custom parameters will be always being logged, regardless if you register the parameters in the Firebase console or not.
Yes, the events will be logged as well as the custom parameters, HOWEVER, in the Firebase console, you won't have access to the data of the custom parameters unless you register them. And currently there is a limit of 10 text parameters and 40 numeric parameters. So registering the parameters in the console will allow you to analyze these parameters in the Firebase console.
NO, BigQuery will have the data for all events and parameters even if you don't register the parameters in the Firebase console. HOWEVER you need to link your project to BigQuery (requires a payment plan), BEFORE you start logging the events in the app. BigQuery will have access to everything from the time you link the project and onwards.
Previous answers apply to this question as well.
Sources: https://stackoverflow.com/a/44501664/658323 (answered by a Google product manager) & https://stackoverflow.com/a/44808845/658323
Answer to your questions in same order:
Both logging and analysis. Firebase provide a fancy interface for custom parameters too with a graph and number of times they have been logged.
2.Yes
Yes and also export the data to Big Query.
Events would be logged but not the custom parameters if limits are exceeded. Check out the doc for parameters limits.

Resources