google-analytics-api

calling ga_goal from the googleanalyticsr package

荒凉一梦 提交于 2019-12-25 00:07:57
问题 Hi I am trying to call find goals but cant get the right style I am currently being returned Error: API returned: invalid webPropertyId: 79885916. Im sure that this isn't wrong as my analytics url contains a48372046w79885916p82626620/ library(googleAnalyticsR) library(ggplot2) ga_auth() my_accounts <- ga_account_list() account <- ga_goal(48372046, 79885916, 82626620, 4) write.csv (account, "r.csv", row.names = TRUE) 回答1: It may need the web property UA code, which is in the form UA-33333-1

GA Management API - Custom Dimensions list() - Error 403: Insufficient Permission

若如初见. 提交于 2019-12-24 23:24:06
问题 I'm using Management API (using PY Client Library) to get list of Custom Dimensions as described here - Custom Dimensions: list link = analytics.management().customDimensions().list(accountId = ACCOUNT_ID, webPropertyId = PROPERTY_ID) dimensions = link.execute() but the API keeps returning Error Code: 403, Insufficient Permission I'm pretty sure the service account email address I'm using to build credentials object has sufficient Edit, Read & Analyse level access at the GA Account Level!. I

Analytics API- Get MCF data = Blank Results

牧云@^-^@ 提交于 2019-12-24 16:27:37
问题 I am trying to retrieve MCF data from an analytics account. So far I am able to get GA Data successfully, but when I try MCF I get blank data. Am I reading the data correctly, or is MCF data in a different format? $results= $analytics->data_mcf->get('ga:'.$profileId,'yesterday','today','mcf:assistedConversions'); if (count($results->getRows()) > 0) { $rows = $results->getRows(); $sessions = $rows[0][0]; printf(" Analytics Name: $PropertyName AnalyticsID:$PropertyId \n"); printf(" ->Sessions:

Not getting Goal name using Google Analytics gapi

烂漫一生 提交于 2019-12-24 08:48:20
问题 I have to get goal name using gapi. Also, I have seen all dimensions and metrics, but i don't get goal name. https://developers.google.com/analytics/devguides/reporting/core/dimsmets Can anyone help me how can i get goal name. Do we have any dimension like ga:goalName? Thanks in advance 回答1: The only way to get the Goal name associated with a goal is to go though the management api Goal list There isn't any way to get the goal name or number as a dimension on the GA website or via the API.

Google Analytics Management API 500 Internal Server Error

删除回忆录丶 提交于 2019-12-24 08:46:16
问题 I have an application which gets Google Analytics metadata and statistics for a couple dozens google users from Management and Reporting API. Everything was ok for a long period (several month), but yesterday around 21:00 pm UTC one of them (user) started getting this error: 500, Backend Error or sometimes InternalError His Management API requests: get all Accounts response is 200 with with 360 items get all WebProperties response is 200 with 170 items get all Profiles response is 200 with

Can't find error in Google Analytics API tracker code

非 Y 不嫁゛ 提交于 2019-12-24 07:37:05
问题 I have added all frameworks & have other GA API code implemented and returning analytics. Not sure what the error is? I'm getting "no known instance for selector sendEventWithCategory: (IBAction)didTouchOnInviteButton { ContactListViewController *contactsViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ContactListViewControllerId"]; contactsViewController.mode = modeInviteToEvent; contactsViewController.event = self.event; [self.navigationController

403 Insufficient permissions error while trying to get Google Analytics data

亡梦爱人 提交于 2019-12-24 06:45:00
问题 I'm developing RoR application, which allows user to login with google account and download/upload report data from one of his analytics account. I use omniauth-google-oauth2 gem for authorization with google account and google-api-client for interaction with Google Analytics. The problem is that when I try to get accounts list with analytics.management.accounts.list method, passing google token as one of authorization parameters, GA responds with 403 Insufficient permissions error. I suppose

How to use both ga.js and analytics.js?

匆匆过客 提交于 2019-12-24 05:59:52
问题 How do i use both for an existing google acc that has been using ga.js...i cant seem to find the right documentation. anyone with experience in this? 回答1: To expound what Pete says. Create a new web property for analytics.js - In your google analytics account, go to Admin section and Create a new web property - Creating a new property will provide you with a new Tracking ID Dual Tag - Add both your ga.js and analytics.js tracking code. Note that they must not share the same UA code. Your

How to use both ga.js and analytics.js?

风格不统一 提交于 2019-12-24 05:59:18
问题 How do i use both for an existing google acc that has been using ga.js...i cant seem to find the right documentation. anyone with experience in this? 回答1: To expound what Pete says. Create a new web property for analytics.js - In your google analytics account, go to Admin section and Create a new web property - Creating a new property will provide you with a new Tracking ID Dual Tag - Add both your ga.js and analytics.js tracking code. Note that they must not share the same UA code. Your

Google Analytics Api Error

心不动则不痛 提交于 2019-12-24 02:57:18
问题 I am trying to make a call to get data from Google Analytics. <?php require_once 'lib/apiClient.php'; require_once 'lib/contrib/apiAnalyticsService.php'; session_start(); $client = new apiClient(); $service = new apiAnalyticsService($client); if (isset($_GET['logout'])) { unset($_SESSION['token']); } if (isset($_GET['code'])) { $client->authenticate(); $_SESSION['token'] = $client->getAccessToken(); $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; header('Location: ' .