Questions tagged [google-analytics-api]

A set of APIs for building custom reporting solutions and programmatically managing existing Google Analytics accounts and users.

Google Analytics is a free data collection and analysis platform by Google. The Reporting and Management APIs are for developers already tracking data with the Google Analytics collection libraries. See also the google-analytics tag for general information.

The Reporting APIs

Save time by automating complex reporting tasks and integrate Google Analytics data with other data for deeper insights about your business with these Reporting APIs:

The Management API

Authorized users can programmatically access and manage Google Analytics accounts, users, and data with the Management API.

In addition to managing all account levels and users, you can also use this API to manage certain types of data, like upload cost data to Google Analytics for non-Google paid campaigns, retrieve account data to use with the Reporting APIs, and manage content experiments.

Demos & Tools

Developers to discover what's possible with the Google Analytics Platform. Explore what’s possible and learn how to build powerful and flexible applications with the Google Analytics Demos & Tools.

More links:

3781 questions
13
votes
1 answer

Google API Error 400: "Client project not found"

This is my first time diving into Google API's. I'm trying to get a simple test working following the Google instructions. At this point, I've created the project and set up credentials. Following Google's instructions here, I have created a test…
13
votes
2 answers

Using Google Analytics to show subset of data for customers of web application using embed api

I'm developing an application where each 'business' has it's own page (or rather many pages): For example example. com/business/abc/ So, for the logged in business owners in the system I would like give a feature 'View page analytics'. It would…
12
votes
6 answers

Issue in finding Tracking Id for Google Analytics

I have to integrate Google Analytics in my Android app. Completed all the code for it But, Having one issue. The Issue is taking Tracking ID from my google analytics account. According to the Document : ==> To find the Google Analytics ID (Tracking…
Jaimin Modi
  • 980
  • 1
  • 12
  • 39
12
votes
1 answer

How do I delete user analytics data from Firebase using userDeletionRequests:upsert?

Problem Description My Android app collects data via Google Analytics for Firebase. For privacy reasons, users must be able to wipe their data off the Firebase servers, should they choose to do so. The app requests a deletion by forwarding its…
greeble31
  • 4,398
  • 2
  • 11
  • 27
12
votes
1 answer

google analytics metrics and dimensions API question

I'm trying to use google analytics API to retrieve some data to build a chart that displays number of visitor per day for current month. However I'm almost completely lost with metrics and dimensions idea. if I use ga:visitors metrics - that would…
Stann
  • 12,029
  • 18
  • 60
  • 72
12
votes
5 answers

Import Error: Google Analytics API Authorization

I'm trying to run the sample provided here https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-py for authorization. I've noticed from other questions in SO that (ImportError: cannot import name…
12
votes
4 answers

Google Analytics API v4 for Android Does NOT Send Screen Views

I've set all things for google analytics api v4 as it mentioned here: https://developers.google.com/analytics/devguides/collection/android/v4/ and here: http://www.javacodegeeks.com/2014/04/working-with-google-analytics-api-v4-for-android.html I…
12
votes
2 answers

Google Analytics, get Annotations from API

Is there any method to get Annotations from Google Analytics via their API. Lots of searching hasn't given be any docs or solid answers on if this is possible or not. Has anyone done this, or know the filters / dimensions I need to use to get…
Jake N
  • 10,136
  • 9
  • 57
  • 106
11
votes
4 answers

Service Account Google Analytics OAuth AccessType = Offline C#

I've got credentials of an account with access to Google Analytics, I'm looking to utilise the Analytics Core Reporting API http://code.google.com/apis/analytics/docs/gdata/home.html I've found examples which use username/password calling…
Ian
  • 1,589
  • 11
  • 20
11
votes
5 answers

How do I retrieve Google Analytics report data using v3 of their .NET api?

I've been trying to retrieve Google analytics reports using their provided .NET api and have really been scratching my head over how I actually retrieve anything using the newest version, v3, which is available here:…
pantryfight
  • 318
  • 1
  • 3
  • 13
11
votes
1 answer

Google analytics API C#

I'm currently implementing a pageview counter on some webpages using the Google Analytics API. I'm having a hard time figuring out how to use the Google API. Could someone post some examples how to use the API? I searched the mighty internet but I…
Thijs
  • 2,705
  • 4
  • 27
  • 50
11
votes
1 answer

Google Analytics API - Cant add services after having authenticated

Within the google console I have created Credentials for an API Key - Type Server and for Oauth with Type Other. For the developer key I am using the API Key Credentials and for the client id/secret I am using the Oauth Credentials I am using the…
11
votes
2 answers

Proper method of getting a server auth access token for a client to use with google analytics

I have a global account that has several views that I want to use on the server side to embed dashboards for the various views on the client side. From what I understand, I get an access token using a service account on the server side and can then…
Cenoc
  • 10,072
  • 17
  • 51
  • 84
11
votes
1 answer

How to work with custom dimension in Google Analytics v3 for Android app

I want to make an app, in which a user can search city names. When city names not found, that city name will be tracked by Google Analytics. For that I have created a custom dimension by following image in Google Analytics: and also : I have the…
Panchal Amit
  • 12,802
  • 10
  • 73
  • 137
11
votes
2 answers

Google Analytics API: filter by multiple URIs?

The issue is that i need to filter around 100 analytics URIs which is located in database(lets say most important pages of site), it can be queried one by one but i think it is not efficient. The goal is to filter all URIs at once. instead of…