google-analytics

Uncaught ReferenceError: _gaq is not defined (Google Analytics)

好久不见. 提交于 2019-12-03 08:14:06
问题 The following message appears when viewing a site page in the chrome debug log. Uncaught ReferenceError: _gaq is not defined The page itself is supposed to track an object using the onload event handler and fire a _trackEvent for Google Analytics. My best guess is that perhaps the ga.js file doesn't load in time and therefore the onload _trackEvent triggered is not caught. the async snippet is being used before the </body> close and the object is positioned in the middle <body> . (some other

Google analytics (via tag manager) loses track of adwords visitors after first pageload

与世无争的帅哥 提交于 2019-12-03 08:09:03
I am experiencing a very strange problem with Google tag manager (GTM), Google analytics (GA) and Google adwords. So far I am getting nowhere with solving it. The setup: We have a singe page application (backbone and marionette) and we are using GTM to push virtual pageviews to GA using standard dataLayer.push events (and also e-commerce events if this is relevant). This setup generally works fine. The problem: The problem is users coming from adwords, with a gclid tag. The first pageview for these users is tracked and attributed do the adword campaign correctly, but as soon as they click any

Multiple Google Analytics Tracking IDs in Single Page? [closed]

自作多情 提交于 2019-12-03 08:04:30
We are creating a site that deals with multiple users, each with their own 'white label' portal that is accessed by a unique sub-domain URL. We want to maintain our own tracking metrics through Google analytics but also wish to provide the white label users the option of using their own tracking ID for their unique sub-domain. My question is this: Is it possible (or even supported) to have multiple Tracking ID code snippets on a single page in a web site? Google Docs has information on this at One Push, Multiple Commands : _gaq.push( ['_setAccount', 'UA-XXXXX-1'], ['_trackPageview'], ['b.

Google Analytics Event Permutation

烈酒焚心 提交于 2019-12-03 08:01:49
问题 since the 9th of Sep some events (about 0,01 %) and their dimensions were unreadable by permutation. Like the event "VideoView" becomes to "eiVwoediV". Does anybody have the same problem or anybody know why? The analytics is implemented via Google Tag Manager. Thanks for advice! 回答1: We caught it! We luckily had a known customer who created such requests and we phoned him! We nailed it down to one Firefox plugin: https://addons.mozilla.org/de/firefox/addon/cliqz/ We could reproduce the

Google Analytics - track multiple events in single HTTP request

有些话、适合烂在心里 提交于 2019-12-03 07:48:00
I need to track how many times the item is present in search results (in web application). I.e. user search something and get first 20 items - 1 visit for each of 20th items is tracked. On another page user can see statistic for item - how many times it was shown in search results. I consider usage of Google Analytics Event Tracking for that task. E.g. from Javascript: ga('send', 'event', { eventCategory: 'item-category', eventAction: 'search', eventLabel: 'item-id', }); But unfortunately Google Analytics API allows to register only 1 event per 1 HTTP request. It means that for every search 20

Google Analytics - Access api without login

假装没事ソ 提交于 2019-12-03 07:40:24
问题 I had successfully configured google analytics api and get successful data. I want to access analytics api without gmail login. i.e. I will hard code credentials to for login, but how to do it with PHP? Is there any api function to achive this task (for PHP) Thanks! 回答1: The Hello Analytics API: PHP Quickstart Guide for Service Accounts will walk you through the steps necessary to create and add a service account to your existing Google Analytics Account/Property/View. Once you download have

User ID not displaying in Google Analytics dashboard (iOS)

此生再无相见时 提交于 2019-12-03 07:34:44
问题 I'm trying to link GA's User ID feature to my iOS app, but this doesn't seem to be working. From the documentation, I enables a User ID capable view (profile). Then, I set the userId field. My code: AppDelegate.m id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; // You only need to set User ID on a tracker once. By setting it on the tracker, the ID will be // sent with all subsequent hits. [tracker set:@"&uid" value:@"userIDTest"]; // This hit will be sent with the User ID value

Using and querying Custom Dimensions in Google Analytics API

久未见 提交于 2019-12-03 07:33:48
I am attempting to query my Analytics (Universal) to receive a list of metrics sorted by a custom dimension. In July, the Google Analytics API blog announced: "Developers can use custom dimensions to send unique IDs into Google Analytics, and then use the core reporting API to retrieve these IDs along with other Google Analytics data. For example, your content management system can pass a content ID as a custom dimension using the Google Analytics tracking code. Developers can then use the API to get a list of the most popular content by ID and display the list of most popular content on their

Implement Google Analytics in ios swift

早过忘川 提交于 2019-12-03 07:30:34
问题 I am following the Analytics for iOS (developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift) guide and I've got errors in my Swift code Project that I can't fix. I am working with XCode 6.4, Swift and the iOS Deployment Target 8.1. Step 1 First I installed a Google SDK using CocoaPods. This is the console result after running pod install command: Updating local specs repositories CocoaPods 1.0.0.beta.2 is available. To update use: `gem install cocoapods --pre` [!] This is a

How to debug Android ANR?

梦想与她 提交于 2019-12-03 07:26:49
问题 My Android app gets a lot of ANR reports lately in the Google Play console. Since this started to happen when I included Google Analytics in the app, I strongly suspect Analytics to cause it. Problem is that I know how to debug a crash using the stack trace. But I'm not sure about how to debug an ANR. I guess that an ANR means that the main thread is blocked somewhere. But how to know where it is blocked? See below one of the typical ANR I got lately. How to interpret it and start figuring