google-analytics

change view ga_realtime_sessions_view_YYYYMMDD to standard sql

杀马特。学长 韩版系。学妹 提交于 2019-12-08 02:06:16
问题 I activated the streaming export from Google Analytics to BigQuery about a year ago but I'm having troubles changing the SQL syntax of the real-time view (ga_realtime_sessions_view_YYYYMMDD) to STANDARD SQL. How can I change the SQL of this view? The view is defined as: SELECT * FROM [XXX.ga_realtime_sessions_20180424] where exportKey in ( SELECT exportKey FROM ( SELECT exportKey, exportTimeUsec, MAX(exportTimeUsec) OVER (PARTITION BY visitKey) AS maxexportTimeUsec FROM [XXX.ga_realtime

Google Developers Console: how do I register a new application?

主宰稳场 提交于 2019-12-08 02:04:01
问题 I'm trying to follow this tutorial for Google's Analytics API. The tutorial says "If you haven't already registered your application with the Google Developers Console, then set up a project and application in the Developers Console". The documentation for the Developers Console says "A project consists of a set of applications...", which makes sense. I'm able to create the project, but I don't see any way to create an application within that project. Both pieces of documentation linked above

google api with params gives unknown authorization header

二次信任 提交于 2019-12-08 01:52:35
问题 I have this problem, that usually api entry point works fine: https://www.google.com/analytics/feeds/accounts/default but when I add parameters like: https://www.google.com/analytics/feeds/accounts/default?max-results=50 then it fails. This is the part of the interaction if someone can tells whats wrong: GET&https%3A%2F%2Fwww.google.com%2Fanalytics%2Ffeeds%2Faccounts%2Fdefault&oauth_consumer_key%3DCONSUMERKEY%26oauth_nonce%3D88526211463343710%26oauth_signature_method%3DHMAC-SHA1%26oauth

Uncaught TypeError: Cannot read property 'sub' of null in Google Analytics API

一曲冷凌霜 提交于 2019-12-08 01:41:09
问题 i created one application which uses google analytics api ie https://apis.google.com/js/client.js?onload=load and i was using nicely but suddenly now one error is coming Uncaught TypeError: Cannot read property 'sub' of null after popup comes for username and password, it was working fine before but now it is showing this error. can anyone please help me out with this. Thanks, Mayank 回答1: This is a bug in the Google API Javascript Client, and my production site is being affected as well. A

How to know the number of recipient have open the email through google analytic?

自作多情 提交于 2019-12-08 01:30:25
问题 I am using swiftmailer , a library for sending mail in php. The problem is , I have already register a google analytic account. How can I use this tool to check how many person have opened the email ? Thank you. Updated: Ok, trackcode is in js , sure would not work. Images have some chance if the user allow it. To be precise, what should i include in the image.php, and is that mean i go to google analytics webpage and track the ../image.php?id=xxx then i can get result? should i add the code

What is the difference between Hit, Session, and User level in Google Analytics?

房东的猫 提交于 2019-12-08 01:26:57
问题 I have read the documentation on Google Analytics page, but seems I can not understand how it affect the data collected by GA. I have this case: In my game (iOS and Android), there are 5 characters. I want to know how many user are using each of these characters. For example, in some time the User A using character 1. It sends the data to GA, and in the GA reports it will show that there is just 1 user using Character 1. As soon as the User A change the character into character 5, the GA

Get function in Google Analytics API

半城伤御伤魂 提交于 2019-12-07 23:57:55
问题 I'm trying to fetch some data using the analytics API, the example i have is this: function getResults(&$analytics, $profileId) { // Calls the Core Reporting API and queries for the number of sessions // for the last seven days. return $analytics->data_ga->get( 'ga:' . $profileId, '7daysAgo', 'today', 'ga:sessions'); } and the function in the Analytics.php file is: public function get($ids, $metrics, $optParams = array()) { $params = array('ids' => $ids, 'metrics' => $metrics); $params =

IIS7 URL Rewrite multiple domains to a single domain including google analytics referral code

谁说我不能喝 提交于 2019-12-07 23:56:33
问题 I am trying to elegantly capture a large number of domains that need to redirect to a single domain for example: mydomain.com, www.mydomain.com, mydomain-eu.com, mydomain.eu all to the main domain: www.mydomain.co.uk This I can do fairly easily in IIS by creating a site - binding all the domains and doing a redirect. However there is a catch. The client wants to track where those redirects came from in google analytics. So they need some parameters passing in the redirect URL, example (using

How to make Google Tag Manager Analytics tags use the DEFAULT tracker?

五迷三道 提交于 2019-12-07 23:51:33
问题 The analytics tags defined in GTM (not using a custom HTML tag for analytics) seem to have their own tracker. I have _gaq.push() based configuration (some custom variables) in my web page in the rendered html. And this configuration is applied to the default tracker . GTM on the other hand defines its own tracker with random name (its actually a number) and all configuration done in the GTM web GUI is applied on that custom named tracker. How do I make GTM use the default nameless tracker, so

Linking Google Analytics event logs to unique session ID

核能气质少年 提交于 2019-12-07 23:33:36
问题 I've been playing with Google Analytics (& tracking events) and I'd like to be able to export my data as a raw log of [session ID, tracking event/analytics statistic] so that I can do my own classification of user sessions. All I seem to be able to do is look at events in aggregate, e.g. event X happened 19 times. Does anyone know if this is possible with Google Analytics? They certainly assign a unique ID, but maybe they choose not to make it possible. If not, positive experiences with