google-analytics-api

How do I use a Service Account to Access the Google Analytics API V3 with .NET C#?

懵懂的女人 提交于 2019-12-17 08:59:13
问题 I realized this question has been previously asked but with little in the way of example code, so I am asking again but with at least a little bit of direction. After hours of searching, I have come up with the following partial implementation. namespace GoogleAnalyticsAPITest.Console { using System.Security.Cryptography.X509Certificates; using DotNetOpenAuth.OAuth2; using Google.Apis.Analytics.v3; using Google.Apis.Analytics.v3.Data; using Google.Apis.Authentication.OAuth2; using Google.Apis

Find the page load time of external URLs

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 19:18:55
问题 Is there a way to find the page load time for external URLs? My task is to compile a table of page load times for a list of URLs. I have read about the navigation timing API but could not find a way to find the page load time for an external URL that I specify in code. For example, something like http://tools.pingdom.com/fpt/ which analyzes the page load time for the URL we enter(I'm not sure if this is accurate) 回答1: http://www.webpagetest.org/ is a great tool for this. It measures the Page

GA total results is significantly less with hour dimension than with date dimension

血红的双手。 提交于 2019-12-13 18:01:08
问题 I am using the GA API running two queries over 1 year's worth of data: Query1: Get apiQuery = analytics.data().ga() .get("ga:" + profileId, "2013-03-08", "2014-03-09", "ga:visits") .setDimensions("ga:campaign,ga:keyword,ga:date") .setSort("ga:campaign,ga:keyword") .setFilters("ga:medium==cpc") .setMaxResults(1000); Query2: Get apiQuery = analytics.data().ga() .get("ga:" + profileId, "2013-03-08", "2014-03-09", "ga:visits") .setDimensions("ga:campaign,ga:keyword,ga:date,ga:hour") .setSort("ga

Showing Google Analytics Data in real time

穿精又带淫゛_ 提交于 2019-12-13 17:03:42
问题 I would like to show number of visitors on a site since beginning of the month, number of users on the current day and currently on site. I have Google Analytics installed, I tried to solve this issue with Embed API by enabling Google Analytics API from developer console - but I requires user authorization, etc. What would be the easiest way to show analytics on-site without user authentication and accepting access by Embeded API, etc. Application is written in Angular, so Javascript API is

Google analytics - 'String xml configuration name not recognized'

雨燕双飞 提交于 2019-12-13 05:34:27
问题 I'm attempting to utilize Google Analytics in my app and encountering a few issues. Upon running the app I get the following logcat messages: 03-12 23:27:11.107 25448-25448/il.ac.shenkar.david.todolistex2 W/GAv4: String xml configuration name not recognized: il.ac.shenkar.david.todolistex2.MainActivity 03-12 23:27:11.111 25448-25448/il.ac.shenkar.david.todolistex2 W/GAv4: String xml configuration name not recognized: il.ac.shenkar.david.todolistex2.EditTaskActivity 03-12 23:27:11.111 25448

Google Measurement Protocol Source & Medium

纵饮孤独 提交于 2019-12-13 03:34:49
问题 I have started using GMP on an eCommerce website as I am concerned about transactions not being tracked correctly due to ad blockers and subsequently the conversion data in Adwords being incorrect. However, I've started using it and I've found it to be a nightmare to get to work as you'd expect. I found this question still unanswered which is worrying!! Measurement protocol transactions from Google Analytics to Google AdWords However, my question is similar. But not the same. I'd like to know

Google Analytics PHP API - Error (403) Access Not Configured

ぐ巨炮叔叔 提交于 2019-12-13 03:12:20
问题 I have been Googling this for going on hours now. I have followed the Hello Analytics tutorial. The application runs fine until the user has granted permission from the Google 'consent screen' at which point i receive the following error: There wan a general error : Error calling GET My url (403) Access Not Configured. Please use Google Developers Console to activate the API for your project. I have checked in the developer console and Analytics API is enabled and, after reading other posts

Google Analytics API v3 > analytics.management.uploads.uploadData Insufficient Permission Problem

雨燕双飞 提交于 2019-12-13 02:49:39
问题 I have developed a PHP application which will send refund data to analytics. I want to send the refund via data upload. I use the Google APIs PHP client library so the following code uses the method you can find here: https://github.com/google/google-api-php-client-services/blob/a016ea7b6d47e1fd1f43d89ebd80059d4bfadb32/src/Google/Service/Analytics/Resource/ManagementUploads.php $dataTxt = "ga:transactionId;ga:quantityRefunded;ga:productSku;ga:productPrice dcn15355709483497;1;2811841;38.47

Google Analytics - cannot insert or update webproperty

回眸只為那壹抹淺笑 提交于 2019-12-13 02:07:52
问题 I am trying to create a new WebProperty or update an existing one in Google Analytics API. The service account is added to the Google Analytics account with all permissions checked. Response: "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Your project does not have access to this feature." } ] Apart from update and insert the rest of the management API is working. What am I missing? 回答1: it's written in documentation: Write operations in the Management API

Getting full, unsampled data from GA using R / rga

谁都会走 提交于 2019-12-12 21:22:11
问题 I'm using skardhamar's rga ga$getData to query GA and get all data in an unsampled manner. The data is based on more than 500k sessions per day. At https://github.com/skardhamar/rga, paragraph 'extracting more observations than 10,000' mentions this is possible by using batch = TRUE. Also, paragraph 'Get the data unsampled' mentions that by walking over the days, you can get unsampled data. I'm trying to combine these two, but I can not get it to work. E.g. ga$getData(xxx, start.date = "2015