google-analytics

AMP Project - Google Analytics - Content Grouping amp-analytics code

你离开我真会死。 提交于 2019-12-06 12:23:13
I am trying to assign content grouping variable to my Google Analytics code in my AMP markup. My AMP analytics code: <amp-analytics type="googleanalytics" id="analyticsgoogle1"> <script type="application/json"> { "vars": { "account": "UA-XXXXXXXX-X" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics> My regular Google analytics code: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a

Query hits and custom dimensions in the BigQuery?

假如想象 提交于 2019-12-06 12:11:56
问题 I am working with the GoogleAnalytics data in the BigQuery. I want to output 2 columns: specific event actions (hits) and custom dimension (session based). All that, using Standard SQL. I cannot figure out how to do it correctly. Documentation does not help either. Please help me. This is what I am trying: SELECT (SELECT MAX(IF(index=80, value, NULL)) FROM UNNEST(customDimensions)) AS is_app, (SELECT hits.eventInfo.eventAction) AS ea FROM `table-big-query.105229861.ga_sessions_201711*`,

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

心不动则不痛 提交于 2019-12-06 11:59:41
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 a domain from above): mydomain.eu redirects to: www.mydomain.co.uk?utm_campaign=mydomain.eu&utm_source

Get function in Google Analytics API

岁酱吖の 提交于 2019-12-06 11:26:32
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 = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Analytics

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

坚强是说给别人听的谎言 提交于 2019-12-06 11:17: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 report will say there are 1 user using character 5, and none for the others characters. What kind of scope

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

纵饮孤独 提交于 2019-12-06 10:43:51
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 that my configuration holds true even from GTM GA tags? You can look at tracker list and names by

Export data from google analytics attribution model

核能气质少年 提交于 2019-12-06 10:37:55
is there a way to export the data from google analytics Attribution Model comparison tool? I'm searching through all the dimensions an measures but i was unable to find the correct measure. Is this data available through Core API? Is there a combination of measures to calculate the different models? You can use Google's MCF (Multiple Channel Funnel) API: https://developers.google.com/analytics/devguides/reporting/mcf/v3/ The model you can use seems to be limited (Only First and Last) but at least you can export your funnel path and built your own attribution much easier. Hey I have asked

Firefox “Bad request” caused by corrupt google tracking cookie

落爺英雄遲暮 提交于 2019-12-06 10:22:46
We have an issue on our site whereby some Firefox users are receiving a "Bad Request" message when they visit our site (nothing else, just the words "Bad Request"!) This would appear to be due to a corrupt google tracking cookie, possibly __utmz (one person delete the google cookies in turn and once that one was removed the site came back to life.) Our website uses this Javascript google tracking code: var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text

jquery deep linking - how does it effect analytics?

▼魔方 西西 提交于 2019-12-06 10:11:37
问题 I am looking into using http://www.asual.com/jquery/address/ , but I am wondering how it effects google analytics. Google analytics is a snippet of code at the bottom of pages. I would imagine deep linking would still look like activity on the initial page, not new pages. 回答1: From what I can see it will look to google analytics like navigating to a new page. Just open e.g. http://www.asual.com/jquery/address/samples/tabs/ and check the requests FF makes (e.g. with Live HTTP Headers) and you

Difference in statistics from Google Analytics Report and BigQuery Data in Hive table

风流意气都作罢 提交于 2019-12-06 10:08:46
问题 I have a Google Analytics premium account set up to monitor the user activity of a website and mobile application. Raw data from GA is being stored in BigQuery tables. However, I noticed that the statistics that I see in a GA report are quite different the statistics that I see when querying the BigQuery tables. I understand that GA reports show aggregated data and possibly, sampled data. And that the raw data in Bigquery tables is session/hit-level data. But I am still not sure if I