GA4 Measurement Protocol returns events not the users

I have same problem. You need to set engagement_time_msec parameter. For example: “engagement_time_msec”: “1” More: https://support.google.com/analytics/thread/117981433/events-sent-from-measurement-protocol-do-not-set-active-users?hl=en The Measurement Protocol V4 is for GA4 properties(which is also the one you are using). According to the official document: https://support.google.com/analytics/answer/9408920 It says “Google Analytics 4 properties counts users who engaged with your app/site for any non-zero amount of … Read more

What is the client ID when sending tracking data to google analytics via the measurement protocol?

Integer or UUID The cid is the equivalent of the second value in the _utma cookie when you use the javascript tracking. In js tracking, it is a random integer (generated by Math.round(2147483647 * Math.random())). But it is strored and sent as a string : so you can use both formats (integer or UUID). Required/Optional … Read more

How do I use a Service Account to Access the Google Analytics API V3 with .NET C#?

The following code, corrected from my original question, is based on the example provided by Ian Fraser at: https://groups.google.com/forum/#!msg/google-search-api-for-shopping/4uUGirzH4Rw/__c0e4hj0ekJ His code addressed three issues: It appears as though AnalyticsService.Scopes.AnalyticsReadonly does not work, at least not for me or the way I am doing it. For some reason, the ServiceAccountUser must be assigned to the ServiceAccountId … Read more

Service Applications and Google Analytics API V3: Server-to-server OAuth2 authentication?

UPDATE July 21st, 2012 Google Analytics API V3 now supports OAuth2 tokens returned by a .p12-signed JWT request. That is, we can now use the Analytics API w/ service accounts. Currently pulling 4 years of day-by-day metrics, just for the hell of it. Here’s a quick ‘n’ dirty step-by-step: Go to the Google API Console … Read more