google-analytics-api

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

最后都变了- 提交于 2020-01-09 06:53:01
问题 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 = Google::APIClient.new(:application_name => 'My Service App', :application_version => '1.0.0') key_file = Rails.root.join('config', 'privatekey.p12').to_s key_secret = 'somesecret' key = Google::APIClient::PKCS12.load_key(key_file, key_secret) asserter = Google::APIClient:

How to add Google Tag Manager firing rule for Backbone Marionette site?

一世执手 提交于 2020-01-07 07:26:18
问题 I have already built a site with backbone marionette and now I am trying to use Google Tag manager to add the tracking. But I have no idea how to configure GTM, in order to listen page change and button click event. 回答1: Clicks are up to you to set up listening events and track manually from views. Page views can be tracked like this: Backbone.history.on('route', function() { // Send Backbone.history.fragment to your page view tracker }); 回答2: There is a bit of fiddling required there. Tag

Google Apps Script & Google Analytics API: Can't read PropertyIDs from Google Spreadsheet columns

走远了吗. 提交于 2020-01-06 19:56:21
问题 I'm trying to use this code in Script Editor to read the queries from Google Spreadsheet columns so that people who do not know Google Apps Scripts can use it when they want to change the queries like start-date, end-date, metrics, dimensions, etc...the codes can read start-date, end-date, metrics, dimensions, and filters successfully. However, I think it doesn't recognize the accountId, webPropertyId, and profileId from a sheet named "Report Configuration." I got an error "Response Code: 404

I want to increase the Real Time Reporting API request limit

混江龙づ霸主 提交于 2020-01-06 19:29:21
问题 We are using the Core Reporting API and Real Time Reporting API. This API limit 10000request/day per view, but I want to increase the this Is this possible? if possible, please let me know how we can increase quota limits and the price for the case of 20000 request/day. 回答1: There are several quotas for the Google Analytics APIs and Google APIs in general. requests/day 0 of 50,000 requests/100seconds/user 100 requests/perView 10000 Your application can make 50000 requests per day by default.

Google Analytics Reporting API returning empty object - NodeJs

浪子不回头ぞ 提交于 2020-01-05 04:06:11
问题 first question so bear with me. I am using NodeJS to query the Google Analytics Reporting API. I am able to receive the OAuth 2 token I need, and when I query the API I get a 200 response back. However the payload that returns is an empty object instead of the JSON formatted report response that is the intended goal. var https = require('https'); var google = require('googleapis'); var key = require('path/to/key'); var jwtClient = new google.auth.JWT(key.client_email,null,key.private_key,

Not getting correct redirect URI for Google Analytics installedapp (custom plugin)

独自空忆成欢 提交于 2020-01-04 09:58:29
问题 I am developing a custom WordPress plugin to retrieve the page views and URL of posts. According to gaDataAuthorization, Plugin is an installed application. And ouath2InstalledApp. Here I read it is same as Using OAuth 2.0 for Web Server Applications, having three differences. But when I am trying to use urn:ietf:wg:oauth:2.0:oob as the redirect URI, it is not working. Can anybody give me any idea? In the developer console it alerts: Must have a protocol. Cannot contain URL fragments or

Not getting correct redirect URI for Google Analytics installedapp (custom plugin)

不想你离开。 提交于 2020-01-04 09:57:52
问题 I am developing a custom WordPress plugin to retrieve the page views and URL of posts. According to gaDataAuthorization, Plugin is an installed application. And ouath2InstalledApp. Here I read it is same as Using OAuth 2.0 for Web Server Applications, having three differences. But when I am trying to use urn:ietf:wg:oauth:2.0:oob as the redirect URI, it is not working. Can anybody give me any idea? In the developer console it alerts: Must have a protocol. Cannot contain URL fragments or

Query multiple ID's on Google Analytics Javascript API

耗尽温柔 提交于 2020-01-04 04:57:22
问题 I'm using Google Analytic's API for javascript. I'm performing a query for the user's count of a data range, and passing the view ID to the query: gapi.client.analytics.data.ga.get({ 'ids': 'ga:XXXXXXXX', 'start-date': '2014-10-01', 'end-date': '2014-10-15', 'metrics': 'ga:users' }).execute(function (results) { if (results.rows && results.rows.length) console.log(results.rows[0][0]); }); However, since I'm dealing with the quotas of usage, and I needed to query for multiple views. Is there a

Invalid_grant in Google Analytics

我的梦境 提交于 2020-01-04 01:56:08
问题 I am running the Analytics-cmdline-sample application with Java. I am using Maven 2.2.1, I have created a client_Id and client_secret in the Google Api Console. I have ensured that in my Google Analytics account that I have access to the websites I have Google Analytics on. I have revoked the client_secret and tried that as well. I am currently getting the following error: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request { "error" : "invalid_grant" } I have looked

Google Analytics Pod installs too many dependencies

血红的双手。 提交于 2020-01-03 09:30:10
问题 I've just included the Google Analytics Pod as described in their iOS developer guide with: pod 'Google/Analytics' When running pod install it installs the following dependencies: Installing FirebaseAnalytics (3.2.0) Installing FirebaseInstanceID (1.0.6) Installing Google (3.0.3) Installing GoogleAnalytics (3.14.0) Installing GoogleInterchangeUtilities (1.2.1) Installing GoogleSymbolUtilities (1.1.1) Installing GoogleUtilities (1.3.1) Since I don't use Firebase, I would like to get rid of the