google-analytics-api

How can I measure retention using Google Analytics Mobile SDK

岁酱吖の 提交于 2019-12-04 05:38:26
I would like to create a retention cohort analysis for my mobile Android application using Google Analytics Mobile SDK. Basically I would like to segment my cohort by date of installation (e.g. group all users which installed my app on the same day) and measure retention after two weeks (e.g. how many of each group are still using the app after two weeks). I want to end up with a graph showing a date on the X-axis and the relevant retention percent for that date on the Y-axis. I was able to do this in the past (using the previous analytics version) by using a custom variable which indicated

Google Universal Analytics Localhost Setup

半城伤御伤魂 提交于 2019-12-04 04:33:23
I'm trying to test GA on localhost after following the suggestions in Can you test google analytics on a localhost address? 1). but I don't see any data being send to my Google Analytics account when browsing on my localhost server and calling the JS script. I know it's executing the JS. What am I doing wrong? Here is my JS code: (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','/

Import Error: Google Analytics API Authorization

老子叫甜甜 提交于 2019-12-04 02:56:17
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 SignedJwtAssertionCredentials ) SignedJwtAssertionCredentials has been removed and therefore could not be imported. So, I started to follow the solutions provided both on the GitHub page ( https://github.com/google/oauth2client/issues/401 ) and StackOverflow. So far, nothing worked, I'm still seeing the same error. Following is my code. import argparse from apiclient

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

让人想犯罪 __ 提交于 2019-12-04 02:52:40
问题 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 Firebase APP_INSTANCE_ID to my own server. This server has been prepared in advance with credentials, from my personal Google account (via oauth2), for managing the Firebase project. The server authenticates with www.googleapis.com , and, using the

Google Analytics API v3 authorization to allow access to my data

↘锁芯ラ 提交于 2019-12-04 00:27:07
I am developing an app that allows users to see my own Google Analytics Data using Google API v3. Everything I researched seems to indicate that users need to login into their Google accounts and grant my app the access before I can start querying the API; however, that's not what I want, I just need my users to see my own Analytics data. How can authorize the API to access my data. I have the client ID and Client Secret, but the OAuth that's implemented by Google's API v3 is asking for an authorization token, which can only be obtained by getting the user to login into their google account

Google Analytics, get Annotations from API

非 Y 不嫁゛ 提交于 2019-12-04 00:12:48
问题 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 Annotations? Thanks Jake 回答1: No, to this date there's no way to get annotations from the Google Analytics API. There's an open issue for it. http://code.google.com/p/analytics-issues/issues/detail?id=53 Feel free to star the issue to get updates, but

How to send Google analytic report query using ASP.net Google analytic api Version 3(Google.Apis.Analytics.v3.dll)?

笑着哭i 提交于 2019-12-03 21:05:52
I am currently developing GA reporting web app for my company using asp.net Google api V3( Google.Apis.Analytics.v3.dll ). I understand there is older version of .net api and some example for it but when there is newer version I might as well use it. This following code snippet is how you send query to retrieve GA data using Google.GData.Analytics.dll . But it's older version. AnalyticsService _service = new AnalyticsService("GoogleAnalytics"); _service.setUserCredentials("YourUsername", "YourPassword"); DataQuery dataQuery = new DataQuery(Conststr_Url); dataQuery.Ids = "ga:xxxxxx"; dataQuery

Node: Google Analytics data via service account

半腔热情 提交于 2019-12-03 20:27:12
Update: I've since turned the code into an NPM module . I've worked my way through created a JWT token for a service account , and I can access user data, but I want to get to my analytics data to use it to drive content on my website. Note: I don't know if there is a better way than this, but the the existing npm tools seem to require that you enter your password. As a result I end up using REST calls rather the gapi tools. This is the error I get { error: { errors: [ [Object] ], code: 403, message: 'User does not have any Google Analytics account.' } } Here is the code I am using which is

Google Analytics - Tracker Object from Activity

喜你入骨 提交于 2019-12-03 20:11:20
I am creating the Google Analytics Tracker object from an Activity. The issue is that I am getting an error in the cast operation done on this.getApplication(). Please let me know how to create a tracker object from an Activity. public void sengToGoogleAnalytics() { Tracker t = ((AnalyticsSampleApp) this.getApplication()).getTracker(TrackerName.APP_TRACKER); t.setScreenName(getString(R.string.memoryhome)); t.send(new HitBuilders.AppViewBuilder().build()); } Log 06-11 11:49:59.510: E/AndroidRuntime(2917): FATAL EXCEPTION: main06-11 11:49:59.510: E/AndroidRuntime(2917): java.lang

Where can I view the Google Analytics iOS crash logs?

送分小仙女□ 提交于 2019-12-03 15:26:34
In Google Analytics native SDK for iOS (v2 Beta) I found the following line in there documentation: // Optional: automatically track uncaught exceptions with Google Analytics. [GAI sharedInstance].trackUncaughtExceptions = YES; Does this mean, that Google Analytics now also supports crash logs tracking (like BugSense or Crittercism)? But where do I find them in the online interface of Google Analytics? Hắc Huyền Minh On the left panel, expand the Engagement menu and then click on Crash and Exceptions Update: Now it is GoogleAnalytics V4 and for that go Behavior -> Crashes and Exceptions Look