google-analytics

Google Analytics API not returning same data as Analytics dashboard

邮差的信 提交于 2019-12-05 21:15:00
I'm trying to write a Google Analytics API query that simply returns the monthly unique visitors for each month over the last year. This is the data I see in the Google Analytics dashboard. I've used the Analytics API explorer to write the query, I've verified the ID and account is authed correctly. I'm using the ga:month dimension to get the data month-by-month. This is the query, and the resultant data These numbers are nothing at all like the ones I see on the Analytics dashboard. This is a graph of that data. I'm very confused. I can't see what is different between what I specify in the

Import Objective-c framework into Swift framework (Google Analytics + Cocoapod)

流过昼夜 提交于 2019-12-05 20:59:34
问题 I'm trying to centralize my commonly used Swift code into a framework, and part of that code uses Google Analytics. I brought in Google Analytics as a Cocoapod, but I can't access it from the new framework like I did from the original project because it's Objective-C and there's no bridging header support in frameworks [I'm using Swift 1.2]. The line of code I normally have in the bridging header that makes all of this work is: #import <Google/Analytics.h> Where exactly do I put this in my

Google analytics user explorer get user report

大憨熊 提交于 2019-12-05 20:53:53
How do I get user report from user explorer, using GA API. Didn't manage to find any information about it here https://developers.google.com/analytics/ . For instance in user explorer (audiences section) you can see a list of records having ids like 11111111111.2222222222 and I want to get information about user activity on the website for record with id 11111111111.2222222222 using GA API Eike Pierstorff While the latest GA release notes says the client ids have been "surfaced" (i.e. made visible) it is (at least currently) not available as a dimension via the API. So if you want to use it

How to track where on page was link clicked?

老子叫甜甜 提交于 2019-12-05 20:47:41
I'm taking over development for a site that has three column layout - left (menu, content banners), main (content), right (content banners). They (site owners) use content banners to promote important content. I'm trying to make them understand that (according to P shape of human reading pattern) items positioned in the bottom right (right column, bottom) are practically invisible to visitors. How can I track this - where link was clicked - with Google Analytics? I'm thinking about defining regions (left, main, right) and tracking clicks by them. Can anyone point me in the right direction? Use

Google Analytics for Android using multiple Activities

佐手、 提交于 2019-12-05 20:46:47
I'm trying to integrate Google Analytics into my Android project using the information on the website of the respective SDK . However, there is very little documentation available. My project has 6 different Activities and I noticed that using the method on the website results in a unique visit in Google Analytics for each Activity that is being opened, even if it's still in the same session. Apparently, Google Analytics for Android never reuses a previously used session. Their method is to start tracking activity in onCreate and then stop tracking in onDestroy. The problem I have with this is

Universal Analytics - 3rd Party Payment Gateway

强颜欢笑 提交于 2019-12-05 20:35:19
Our website is currently tracking with Universal Analytics via Tag Manager. Our check-out process includes getting redirected to a 3rd party payment gateway before going to the Thank You Page. So, it would look like this: site.com/checkout --> site.com/payment --> security.com --> site.com/thankyou Security.com is a 3rd party site and I am unable to add the tracking code there. I'd like to be able to see who are able to get past the security.com stage and make it to the site.com/thankyou page. But with this setup, my reports show that after site.com/payment, the visitors exit. Then they return

How can I set campaign with Google Analytics using setCampaignParamsFromUrl()

冷暖自知 提交于 2019-12-05 19:44:13
Update This was caused by a bug that Google have fixed in "Release Version 4.5 - Google Play Services 7.3 (May 1, 2015)". When using Google Play Services 7.3 or later it should be possible to call setCampaignParametersFromUrl() with a full URL as expected. Original question I'm using Google Analytics V4 in my Android app. On startup I send a screen view hit to Google Analytics and I set the campaign parameters on my HitBuilders.ScreenViewBuilder by calling setCampaignParamsFromUrl() like this: String url = "http://example.com/?referrer=utm_source%3Down-build%26utm_campaign%3Dinternal-testing";

where to put google analytics code [duplicate]

帅比萌擦擦* 提交于 2019-12-05 19:34:08
This question already has answers here : Closed 7 years ago . Possible Duplicate: google analytics at head? or end of body? The google analytics code has to be put before the HEAD tag. Can anyone tell where do i put the ga code if there is no HEAD tag present in my jsp file? The correct answer here would be to add head tags to your file. You should be using valid html markup for all your pages, and including head tags (even if empty - though certain other tags within head tag are required, depending on what type of document you are serving. Like..title tag and some meta tags...) is part of a

Call to undefined method Google_Client in Google Analytics while using HelloAnalyticsApi

Deadly 提交于 2019-12-05 19:31:57
I am using Core reporting API for reporting. I have installed Google PHP API client master on my localhost server and made a file HelloAnalyticsAPi.php in src folder Where I include Google/Client.php , Google/Service/Analytics.php files. And use the below details $client->setClientId('XXXXXXXXXXX.apps.googleusercontent.com'); $client->setClientSecret('XXXXXXXXXXX'); $client->setRedirectUri('http://localhost/analytics/src/HelloAnalyticsApi.php'); $client->setDeveloperKey('XXXXXXXXXXX'); $client->setScopes(array('https://www.googleapis.com/auth/analytics.readonly')); $client->setUseObjects(true)

A/B test with Google Web optimizer; what cookie tells me visitor got A or B

喜夏-厌秋 提交于 2019-12-05 18:53:37
When using Google Website Optimizer A/B split test, is there a way I can read a cookie to see which version A or B did the user get? I need to know this from a page other than the control page. Using JavaScript, you could extract the variation number client side and place it into a cookie, see my post here for details ( http://www.optimisationbeacon.com/testing/how-to-integrate-google-website-optimizer-with-google-analytics/ ), but you'll need the following code to get the combination number (undefined means the test is not running, 0 is A, 1 is B, and so on...): utmx('combination') That will