Skip to main content

All Questions

1 vote
3 answers
1k views

I have issues with Google Analytics Data API (GA4) in .NET

I have a problem, I can't get the call to analytics to work with the example from this documentation ( Quick start ). I've changed some things I've read, since it doesn't allow me to use the example ...
Jonathan Monreal's user avatar
0 votes
1 answer
728 views

Authorize Google analytics data from a web application

I am trying to authorize an ASP.NET Core 6 MVC web app to Google analytics data API. [GoogleScopedAuthorize("https://www.googleapis.com/auth/analytics.readonly")] public async Task<...
Linda Lawton - DaImTo's user avatar
1 vote
1 answer
631 views

How do I add a metric name to MetricOrderBy when using Google.Analytics.Data.V1Beta?

I am writing come code in c# with Visual Studio 2022 to fetch Google G4 analytics data and cannot get one piece to work correctly. It is the part where a create an "OrderBy" list for the &...
Randall's user avatar
  • 11
1 vote
1 answer
273 views

GA4 Admin API properties.webDataStreams.getEnhancedMeasurementSettings seems to be broken

I've a .Net tool that gathers Admin data via the GA4 Admin API using the nuget package Google.Apis.AnalyticsReporting.v4. We've recently noticed that our calls to getEnhancedMeasurementSettings ...
Tony McCreath's user avatar
5 votes
1 answer
2k views

How to authorize Google anlaytics data api with OAuth2

I am trying to connect to the new Google Analytics Data api using C# to request data from the new google analytics GA4. The only sample i can find is Quickstart client libraries .net This does work ...
Linda Lawton - DaImTo's user avatar
0 votes
2 answers
1k views

Google.Analytics.Data.V1Alpha - property "daterange" read only

https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries I have run the sample code of the quickstart in c# and this works fine. But I want to use it in an older ...
elke's user avatar
  • 1
1 vote
1 answer
255 views

How do I authenticate using OAuth2 in the Google Analytics Reporting API?

I'm coding in C#.NET, in a Windows console application, and trying to download Google Analytics metrics data. I've installed the Google.Apis.AnalyticsReporting.v4 NuGet library package, and it brought ...
Keith Tyra's user avatar
2 votes
1 answer
1k views

Is Universal Analytics C# SDK compatible with GA4?

I am using Google.Apis.AnalyticsReporting.v4 library for old google analytics views. How do I convert this code to GA4? I can't find a line about switching View Id to something else in code. I have ...
Yehor Androsov's user avatar
1 vote
0 answers
213 views

How can I filter GoogleAnalytics results by campaign name?

I'm using Google Analytics Reporting API V4 to retrieve the page views for a site. I can filter the landingPagePath fine, but the report object contains 2 rows (2 different campaigns). I want to ...
Crignog's user avatar
  • 31
0 votes
1 answer
838 views

Receiving 400 Bad Request error with Google Api Batch Request

I'm having an issue with an Analytics API batch request that I am doing, it was working and now it isn't without me changing anything. I know Google are making changes to their batch endpoints and I ...
Warren's user avatar
  • 11
1 vote
1 answer
221 views

ASP.NET Google Reporting API values differ from Google Analytics Dashboard

Report I have read this thread: Google Analytics API: Why is the API data different than what's being seen on the Analytics Dashboard? But still cannot figure out why my results differ so much ...
Deon LastManStands's user avatar
0 votes
1 answer
254 views

Correct Google analytics api for my project

We are busy with a project where we want to show our customers their popularity rating on our site. Each customer has pages on our sites and we want to use the visits for those pages in Google ...
Deon LastManStands's user avatar
0 votes
1 answer
341 views

Google Analytics Multi-Channel Funnels connection c# [closed]

I'm trying to retrieve the first/last/assisted interactions from Multi-Channel Funnels Reporting API. I can't seem to figure out how to connect to the API in C#. I do already have a working ...
Aram Mutlu's user avatar
0 votes
1 answer
697 views

The primary reference "Google.Apis" could not be resolved

Using Google.Apis version 1.10.0 I have manually added all the google apis libraries to my application .net framework 4.0. I can not download it from Nuget because its not possible on my client ...
satya prakash sharma's user avatar
3 votes
3 answers
2k views

Invalid provider type specified when trying to access google analytics

We keep getting the error below whenever we try to access the API to get current user numbers. I've tried a few things but cannot get to the bottom of this. Can anyone shed any light on whats wrong/...
Ben Williams's user avatar

15 30 50 per page
1
2 3 4 5