google-analytics-api

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

你离开我真会死。 提交于 2019-12-01 08:11:18
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 didn't succeed to store the the campaign source (reffere) in IOS. is it possible to get the campaign

How to POST a multipart/form-data using Power Query's Web.Contents

二次信任 提交于 2019-12-01 07:54:25
问题 In Power Query, I can download data from Web using the Web.Contents function, but there's an api that required the request to contains multipart/form data in the following format "__rdxml"=<*Some data*> So how do you do this using the Web.Contents function? I tried, doing ... PostContent = "__rdxml=<*Some data*>", Source Web.Contents(url,Content=Text.ToBinary(PostContent)) ... But server response with 400 Bad Request . I checked the raw request with Fiddler, it seem like the request is not

Google Analytics API error “Selected dimensions and metrics cannot be queried together.”

▼魔方 西西 提交于 2019-12-01 07:28:10
问题 I have to retrieve as many different metrics from my GA ecommerce as I can all at once. I'm using google api ruby client for that. And keep getting an error: "message"=>"Selected dimensions and metrics cannot be queried together." for example, for this request: result = client.execute(api_method: api_method.data.ga.get, parameters: { 'ids' => 'ga:95561781', 'start-date' => Date.new(2006,1,1).to_s, 'end-date' => Date.today.to_s, 'dimensions' => 'ga:source,ga:medium,ga:country,ga:transactionId

Google Analytics, get Annotations from API

不打扰是莪最后的温柔 提交于 2019-12-01 03:21:28
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 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 please don't reply to it with a "Me too" comment. The issue was open on Jan 2010 and to this date there is no

Google Analytics Embed API authentication

六眼飞鱼酱① 提交于 2019-12-01 00:21:25
I'm looking at getting some stats out of Google Analytics using the Embed API to display on our site using javascript. My question is: Is it possible to display the stats without the user authenticating? I.e. I would like to make some traffic statistics available to anonymous users. Thanks, Chris. This is definitely possible, but you'll have to get the access token yourself (server side, using whatever OAuth 2.0 flow you want). Once you have a valid access token, you can pass it to the gapi.analytics.auth component and use the Embed API as normal. Here's some documentation on that: https:/

R script to import data from google analytics

强颜欢笑 提交于 2019-11-30 22:46:42
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 this post which suggests port forwarding if running through R studio : link but if tomorrow, if I want

Getting a link to a specific Google Analytics view

纵饮孤独 提交于 2019-11-30 18:48:33
问题 I have a GA account, with defined properties and views. Now, I gave viewing rights for a few users to a specific view. How can I construct/get programmatically a direct URL that will bring those users right to that view/report? Thanks a lot! 回答1: First lets take a look at an typical report url for a specific view: https://analytics.google.com/analytics/web/#report/visitors-actives/a40777649w70913173p73156703/ Notice the pattern: BASE_URL = 'https://analytics.google.com/analytics/web/#report/'

svn commit to trigger google analytics annotation?

假如想象 提交于 2019-11-30 18:43:48
I was wondering if there is a way to create a script that is triggered by an SVN commit, and which would add an annotation in a google analytics profile? This would be handy is something changes in a web app, which will have impact in the analytics of the app eventually. Yahel There is currently no way to create annotations via either of the Google Analytics APIs (Data Export API and Management API). Both APIs are currently read-only only for all operations. There is a fairly popular ( 95 , 129 , 157 , 176 , 189 , 253 , 383 supporters) feature request, " Add Annotations update API " on the

Google Analytics Embed API authentication

空扰寡人 提交于 2019-11-30 18:04:16
问题 I'm looking at getting some stats out of Google Analytics using the Embed API to display on our site using javascript. My question is: Is it possible to display the stats without the user authenticating? I.e. I would like to make some traffic statistics available to anonymous users. Thanks, Chris. 回答1: This is definitely possible, but you'll have to get the access token yourself (server side, using whatever OAuth 2.0 flow you want). Once you have a valid access token, you can pass it to the

kGAIScreenName of Google Analytics for iOS v3 is undeclared?

醉酒当歌 提交于 2019-11-30 16:47:18
Today, I found GoogleAnalytics-iOS-SDK have new 3.0 version in Cocoapods. I upgraded and I try to modified the code of manual screen measurement as below: id tracker = [[GAI sharedInstance] defaultTracker]; [tracker set:kGAIScreenName value:@"Detail View"]; [tracker send:[[GAIDictionaryBuilder createAppView] build]]; However, I always get error about kGAIScreenName is undeclared. Even I add GAIFields.h header, it still not work. What did I miss? You have to include two more things: #import "GAIDictionaryBuilder.h" #import "GAIFields.h" Checking what's in GAIFields.h I can see that