google-analytics

Why is Google Analytics event not sent from onSubmit?

故事扮演 提交于 2019-12-10 16:36:23
问题 I'd like to track how often users download files using Analytics' events, but even though the events seem to have been sent, the tracking .gif doesn't seem to be arriving properly. To download files, users are required to fill out a brief form. The information entered into this form is checked by the function checkSubmit() (which returns false when the entered info is invalid or incomplete, true when the information is good to be submitted). Once submitted, the user is redirected to the file.

Using Google Analytics without sending query string data

若如初见. 提交于 2019-12-10 16:34:09
问题 We're doing a simple implementation of Google Analytics on our ASP.NET with jQuery/AJAX web, and for most of it we just call _trackPageview and let Google do the rest. We do a lot of data transfer in query strings, and recently, management became concerned that a lot of our data (such as product numbers) would be sent to Google. Without discussing whether that should be a concern: Is it possible to use Google Analytics at all without sending the query string to Google's servers? I know how to

Google Analytics - Using Client ID as a custom dimension

蹲街弑〆低调 提交于 2019-12-10 16:11:11
问题 Can I use client ID as a dimension in my reports? Client ID does not appear as a dimension in the Dimensions and Metrics Explorer, but I believe I can create a custom dimension that will store the Client ID. My end goal is to have a row per customer/date+time containing the incidents associated with the particular customer at the particular time, e.g. page visits, particular events etc 回答1: Once you've created the custom dimension in GA, you can start tracking it via analytics.js with the

Google Analytics API: Why is the API data different than what's being seen on the Analytics Dashboard?

对着背影说爱祢 提交于 2019-12-10 16:04:33
问题 I've been researching this for a little while now, and from what I gather, it has something to do with samplingLevel . The issue I'm gathering from most other stackoverflow questions is that unless I have a Premium Account, the data will always come back as sampled. It is worth asking, is there anyway to can alter my Google API query so the data is a little more accurate? My query code: $profiles = $analytics->management_profiles ->listManagementProfiles('myID', '~all'); foreach ($profiles-

How can I get results for a dimension (custom variables), where the value is not set?

随声附和 提交于 2019-12-10 15:58:34
问题 I am using custom variables to track order ids. In order to aggregate analytics data into out data warehouse, I want to select a number of metrics with the custom variable as a dimension. However, if I do so, I will not get the entries where the variable is not set (E.g. sessions that didn't result in a sale). I need to get these as well. Can I write a filter or segment that selects only the entries that doesn't have a particular custom variable? I have tried: segment=dynamic::ga

screenName in XML configuration not working

烈酒焚心 提交于 2019-12-10 15:55:26
问题 I just added support for Google Analytics to my app, and I can't make <screenName> in XML configuration to work: The configuration: <?xml version="1.0" encoding="utf-8" ?> <resources> <screenName name="com...ActivityMain">Main</screenName> <screenName name="com...ActivitySettings">Settings</screenName> </resources> I Manifest, I have: <meta-data android:name="com.google.android.gms.analytics.globalConfigResource" android:resource="@xml/analytics" /> And in Application I have: synchronized

Check if Google Analytics or Universal Analytics is installed?

岁酱吖の 提交于 2019-12-10 15:50:04
问题 I am trying, through javascript, to identify if Google Analytics or Universal Analytics is loaded. Some clients still use the old Google Analytics and we want to roll out a javascript that collects data. So i then need to write code for both versions to make sure it gets tracked regardless if its the normal or universal version of analytics. 回答1: Classic GA uses the "_gaq" object, and UA uses the "ga" object, so you could check for the existence of either of those if (_gaq) { // using classic

Why does using target=“_blank” cause Javascript to fail?

血红的双手。 提交于 2019-12-10 15:39:29
问题 I have a bunch of links that use a target="_blank" attribute to open in a new window. I want to attach Google Analytics goal tracking to clicks of these links. To do this, I tried attaching an onclick="pageTracker._trackPageview('/event/outgoing')" attribute to the links. But I discovered that for links with a target="_blank" attribute, the Javascript onclick event gets skipped. So the goal is not recorded. In other words, this link successfully records the goal: <a href="http://www.yahoo.com

Add Google Analytics to a Chrome Extension

雨燕双飞 提交于 2019-12-10 15:34:22
问题 In order to add google analytics to a chrome extension the official docs provide the following snippet: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = 'https://ssl.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); But google also recommends to migrate from ga.js

Google Analytics in Android - filter out test device

不羁岁月 提交于 2019-12-10 15:27:39
问题 Is there a way to make it so that my testing device doesn't report back on my Google Analytics when I open my Android app? I know with AdMob you can add test devices and those devices will load dummy ads. Is there something similar for Analytics on Android? 回答1: You can put your analytics client in "debug" mode, so it won't send any data. (If you're using v2: see the official docs, if you're using v1: see the "Testing" section of this overview). Alternatively, on the server side, you can have