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
99
votes
3 answers

Number of visitors on a specific page

I'd like to see the number of visitors on a specific page (for which I have URL). I don't find in Analytics where to enter a URL in order to look for statistics for this specific page.
Basj
  • 29,668
  • 65
  • 241
  • 451
96
votes
17 answers

How to refresh token with Google API client?

I've been playing around with the Google Analytics API (V3) and have run into som errors. Firstly, everything is set up correct and worked with my testing account. But when I want to grab data from another profile ID (Same Google Accont/GA Account)…
66
votes
13 answers

Google API authentication: Not valid origin for the client

When making an auth request to the Google API (gapi), it's returning false on the checkOrigin. I have removed any client id's or anything that would link directly to my account and replaced it with a regex indicating what the data is for…
60
votes
4 answers

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

I'm trying to make a server application to routinely pull Google Analytics data from my own GA account. Note, it is a personal, server-side application accessing my own data, i.e. there is no end-user accessing this application. As such, I…
moon prism power
  • 2,331
  • 2
  • 14
  • 24
59
votes
3 answers

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

I want to use Google's new measurement protocol for sending tracking events from my server instead of JavaScript. This page says the client ID is…
Alan Illing
  • 1,296
  • 2
  • 14
  • 18
58
votes
3 answers

Google Analytics API - Get page view information for specific URLs

I am looking to implement a page view tracking system on one of my websites. The website is a directory where suppliers can advertise their services. Suppliers have a unique profile page on the site, e.g mysite.com/directory/abc-profile.html The…
MAXIM
  • 4,662
  • 15
  • 78
  • 125
56
votes
6 answers

Linker errors when trying to install new Google Analytics 3.0 Beta

I believe just today Google released a new update to their iOS Analytics frame work (version 3.0). When I follow the instructions and try to run the code, I get: Undefined symbols for architecture armv7: "_inflate", referenced from: …
Ser Pounce
  • 13,548
  • 14
  • 76
  • 162
51
votes
7 answers

Use Google Analytics API to show information in C#

I been looking for a good solution all day but google evolve so fast that I can't find something working. What I want to do is that, I have a Web app that has an admin section where user need to be logged in to see the information. In this section I…
VinnyG
  • 6,743
  • 7
  • 54
  • 73
44
votes
8 answers

Is there a Google Analytics-like solution to track REST calls to a web service?

Just wondering if there's any out of the box solution for this, I am not too familiar with the analytics api maybe I can write some simple js that updates analytics before going to my service etc. -- otherwise I am going to have to stick to the good…
JohnIdol
  • 45,251
  • 58
  • 153
  • 235
43
votes
10 answers

Google Analytics API: "User does not have sufficient permissions for this account."

I'm writing a Ruby app that accesses the Google Analytics API to pull down some experiment information. The app connects and authenticates using a Google Service Account via the following function: def connect ... @@client =…
42
votes
3 answers

Analytics Reporting API V4 Client Library for .NET

I'm trying to get some data from our google analytics instance and I'd like to use the Analytics Reporting API V4 Client Library for .NET (https://developers.google.com/api-client-library/dotnet/apis/analyticsreporting/v4) so that I can bake some of…
42
votes
2 answers

kGAIScreenName of Google Analytics for iOS v3 is undeclared?

Today, I found GoogleAnalytics-iOS-SDK have new 3.0 version in Cocoapods. I upgraded and I try to modified the code of manual screen measurement as below: id tracker = [[GAI sharedInstance] defaultTracker]; [tracker set:kGAIScreenName value:@"Detail…
derjohng
  • 857
  • 2
  • 9
  • 18
42
votes
5 answers

X509 certificate not loading private key file on server

I'm using the Google Analytics API and I followed this SO question to set up the OAuth: https://stackoverflow.com/a/13013265/1299363 Here is my OAuth code: public void SetupOAuth () { var Cert = new X509Certificate2( PrivateKeyPath, …
acurcie
  • 888
  • 2
  • 8
  • 22
39
votes
2 answers

How to delete a event from event tracking of Google Analytics?

I send some event to Google Analytics using this function _gaq.push(['_trackEvent',category,action,label,value]); but I sent them just for testing my code and now I want to delete them and start real tracking. How can I delete them?should I use any…
pooya
  • 881
  • 2
  • 13
  • 29
39
votes
3 answers

Can Google Analytics show me visits by hour?

I am interested in seeing visits on my site broken down by hour - is there any way to generate a report of this in Google Analytics? It appears that all metrics are only broken down by day. Maybe I can get this information through the GA API?
Ken Liu
  • 21,056
  • 17
  • 71
  • 96
1
2 3
99 100