google-analytics-api

Execution of authentication request returned unexpected result: 404

纵然是瞬间 提交于 2019-12-11 03:46:47
问题 I have been using the Google.GData.Analytics and Google.GData.Client to retrieve some Google Analytics data though the Google Analytics API v2 in my web application. The code was as follows: string username = "abc@gmail.com"; string password = "myPasswordHere"; string profileId = "ga:88376970"; string _from = Convert.ToDateTime(dtpFrom.SelectedDate.Value.ToString()).ToString("yyyy-MM-dd"); string _to = Convert.ToDateTime(dtpTo.SelectedDate.Value.ToString()).ToString("yyyy-MM-dd");

Flush google analytics events manually with Google Play Services

时光毁灭记忆、已成空白 提交于 2019-12-11 02:35:08
问题 Is there any way to manually flush all events in Google analytics queue, when Google Play Services is installed? There is one method in the Android GA documentation: GoogleAnalytics.getInstance(getActivity().getBaseContext()).dispatchLocalHits(); But this method doesn't work with Google Play Services - the docs say: public void dispatchLocalHits () Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available, and the local dispatching service

Is it possible to track the app with Google Analytics in IOS Simulator?

偶尔善良 提交于 2019-12-11 01:34:02
问题 I tried to track my app using Google Analytics but didn't see when it opened in "real-time mode". I'm using Google Analytics for Mobile Apps iOS SDK v3 . In Delegate.m : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // Optional: automatically send uncaught exceptions to Google Analytics. [GAI sharedInstance].trackUncaughtExceptions = YES; // Optional: set Google Analytics dispatch interval to e.g. 20 seconds. [GAI sharedInstance]

Google Analytics Metadata API: Allowed Dimensions/Metrics Combinations

↘锁芯ラ 提交于 2019-12-11 01:05:15
问题 The Metadata API doesn't have an attribute or specific mapping to allowed dimensions/metrics combinations? 回答1: I am not sure if this is a question or a statement but you are correct the Google Analytics metadata API returns a list of dimensions and metrics that can be used in the Google Analytics Core reporting API. At this time there is no API that will tell you which dimensions and metrics are valid combinations. the only way to do that is to check the dimensions and metrics reference

Google.Apis.Requests.RequestError for AdSense/Publisher related metrics

允我心安 提交于 2019-12-11 00:18:01
问题 Since yesterday, we have trouble getting data from the Analytics API for AdSense related metrics ( ga:adsensePageImpressions, ga:adsenseAdsViewed, ga:adsenseCoverage etc. ). Other metric like ga:sessions are still working. Is this some permission problem? From the main account, I can log into Analytics, and I do see current AdSense (Publisher) data. .NET, Google.Apis.Analytics.V3 1.20.0.642 (up to date), Google.Apis.AnalyticsReporting.v4 1.20.0.698. Tried with V3 and V4, same error. We are

Where to obtain Google Analytics API access_token?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 23:41:30
问题 According to Google Analytics API Reference OAuth as well as an Access Token can be used to access the stats of an page. Using OAuth is pretty complicated or at least it seems to me like that in php. However according to the docs I should also be able to use access_code as an get parameter. I tried several ways to get the access_token from the google developer console, but neither is working always returning the following error: {"error":{"errors":[{"domain":"global","reason":"required",

GoogleAnalytics android getActivity().getApplication() cannot cast to AnalyticsApplication

為{幸葍}努か 提交于 2019-12-10 22:22:59
问题 this the code where I got the error @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); // Obtain the shared Tracker instance. AnalyticsApplication application = (AnalyticsApplication) getActivity().getApplication(); mTracker = application.getDefaultTracker(); } this is my AnalyticsApplication class package auc.games2.Analytics; /* * Copyright Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version

Angular 2+ Error: Cannot find name 'gapi'

你离开我真会死。 提交于 2019-12-10 19:41:44
问题 Basically, I am receiving the error below when I call the google analytics api for core reporting data. It works on my localhost server but when I try to deploy the app, it fails for me. Please advise on how to import the "gapi" variable in angular2+. Many thanks! This is how I call it in my angular app. gapi.auth.authorize(authData, (res:any)=>{}) ERROR in src/app/order/order.component.ts(65,7): error TS2304: Cannot find name 'gapi'. src/app/order/order.component.ts(66,11): error TS2304:

Google OAuth API not working anymore?! 404 error

烈酒焚心 提交于 2019-12-10 18:27:16
问题 I've got a strange problem with my Analytics Windows Phone App. It's been 2 months now from the first release. My Google Oauth always worked... until several days ago. It is impossible to authorize the app to access Analytics data anymore. And I've changed totally nothing! The first URI I use is: https://accounts.google.com/o/oauth2/auth?redirect_uri=http:// localhost &response_type=code &client_id=*myClientAppId* &approval_prompt=force &scope=https://www.googleapis.com/auth/analytics

How to access Google Analytics API from a serverside background service?

我们两清 提交于 2019-12-10 17:06:11
问题 I'd like to pull in data from google analytics into an own database through an background cron job without the user having to authenticate every time. I do know how to get an Google Analytics OAuth Access Token with user interaction as I asked previously. Using OAuth won't work, since it requires user interaction. According to Google Analytics API Reference OAuth as well as an Access Token can be used to access the stats of an page once on a per session base. However I'm looking for an