google-analytics-api

Google OAuth: can't get refresh token with authorization code

大憨熊 提交于 2019-12-20 02:53:11
问题 I am using Google API Client for Google Analytics with OAuth 2.0 I read this to get the refresh token but it doesn't appears: https://developers.google.com/identity/protocols/OAuth2WebServer#offline I only get this instead: { "access_token": "ya29.twHFi4LsiF-AITwzCpupMmie-fljyTIzD9lG8y_OYUdEGKSDL7vD8LPKIqdzRwvoQAWd", "token_type": "Bearer", "expires_in": 3599, "id_token": "very long string" } Here is the code: Javascript (to get the Authorization Code): that works gapi.analytics.ready

Google Analytics for iOS not dispatching events

自作多情 提交于 2019-12-20 01:06:35
问题 I'm using the latest SDK version, and the basic code to register and send a page view: [[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-MY_ACCOUNT_ID-1" dispatchPeriod:10 delegate:self]; NSError *error; if (![[GANTracker sharedTracker] trackPageview:@"/firstpage" withError:&error]) { NSLog(@"tracker failed: %@",error); } However the events are not dispatched from the device or simulator. There are no errors as well. When i turn on the debug flag, i can see the following: dispatch

How to get active users distributed by Campaign source? Google Analytics campaign tracking ios

本小妞迷上赌 提交于 2019-12-19 10:04:23
问题 I need to track my ios app installs by campaign src. and i am using google Analytics campaign measurement for that . i need to associate the campaign source with the events. so each event will have the campaign source ( referrer ) as dimension. that's will help me to get the active users distributed by campaign source ! How could i do that ? in android i can get the campaign source (referrer) and store it in the device storage (like: NSUserDefaults), then i send it with every event. but i

How to get active users distributed by Campaign source? Google Analytics campaign tracking ios

我是研究僧i 提交于 2019-12-19 10:03:10
问题 I need to track my ios app installs by campaign src. and i am using google Analytics campaign measurement for that . i need to associate the campaign source with the events. so each event will have the campaign source ( referrer ) as dimension. that's will help me to get the active users distributed by campaign source ! How could i do that ? in android i can get the campaign source (referrer) and store it in the device storage (like: NSUserDefaults), then i send it with every event. but i

Google API Error 400: “Client project not found”

白昼怎懂夜的黑 提交于 2019-12-19 05:22:23
问题 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 page and copied the page code exactly as stated on the above link. When I run the page, I initially see an authorize button, which asks me to log into my account. Everything up to this point is fine. However, once I log in to Google, I receive the

R script to import data from google analytics

♀尐吖头ヾ 提交于 2019-12-19 03:54:49
问题 I am trying to connect to google analytic s API through a script running on R studio server. I have followed steps from this tutorial: http://www.r-bloggers.com/how-to-extract-google-analytics-data-in-r-using-rgoogleanalytics/ If I run this on localhost, it works alright but when I try to run the script on a remote server through R studio, authroization step does not complete because it tries to connect to the url on localhost i.e localhost:1410/ instead of REMOTESERVERHOSTNAME:1410 I found

Integrating Google Analytics into GWT application

放肆的年华 提交于 2019-12-18 12:22:03
问题 This should be totally simple but I can't get it working no matter what I try. I'm trying to use Google Analytics with GWT application. From what I understood, there are two way to do it: First is synchronous, by inserting tracking code at the end of <head> section HTML page and then calling this method: public static native void recordAnalyticsHit(String pageName) /*-{ pageTracker._trackPageview(pageName); }-*/; Second is asynchronous, by inserting tracking code just after <body> tag and

google analytics api query a specific url

廉价感情. 提交于 2019-12-18 11:56:28
问题 I am accessing the Google analytics API with PHP which works on my end but I'd love to filter the results a bit further. Right now I am using: $OBJresult = $analytics -> data_ga -> get( 'ga:' . $profilID, '2012-01-01', date( "Y-m-d" ), 'ga:visits', array( 'dimensions' => 'ga:pagePath', 'metrics' => 'ga:pageviews', 'sort' => '-ga:pageviews', 'max-results' => '25' ) ); Currently this returns a set of 25 pages sorted by its hits. I would love to restrict the results to a specific path within the

Analytics Reporting API V4 Client Library for .NET

霸气de小男生 提交于 2019-12-18 10:11:57
问题 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 this data into an administration site we have built. I'm having trouble finding any examples of using this code and the documentation seems to be incredibly sparse. I would like to use a service account to authorize as we only need to view data

Service Applications and Google Analytics API V3: Error 101 (net::ERR_CONNECTION_RESET)

六月ゝ 毕业季﹏ 提交于 2019-12-18 08:58:11
问题 I'm trying to get some info of my Google Analytics account using PHP. I already followed the steps for creating a Service Account in the Google Console API in this answer. I'm using the Google API Client for PHP. This is the code I've got so far: <?php $path_to_src = 'src'; // These files are in /src, upload its contents to your web server require_once $path_to_src . '/Google_Client.php'; require_once $path_to_src . '/contrib/Google_AnalyticsService.php'; $path_to_keyfile = '***'; //my