analytics

Disable GoogleAnalytics from Android App when testing or developing

笑着哭i 提交于 2019-12-22 03:07:17
问题 I'm using EasyTracker in my Android App and I need a way to disable Analytics tracking when the app is in "development" or "testing" mode (I have a flag in a constants file to discriminate). What's the best way to do so? Thanks! 回答1: You can use a class with a static boolean value let's say DEBUG like this : public final class BuildMode { public final static boolean DEBUG = true; } In code, just use : if (BuildMode.DEBUG) ... This is a solution working on all android SDK versions! 回答2: I

Using Python/Selenium/Best Tool For The Job to get URI of image requests generated through JavaScript?

99封情书 提交于 2019-12-21 23:08:29
问题 I have some JavaScript from a 3rd party vendor that is initiating an image request. I would like to figure out the URI of this image request. I can load the page in my browser, and then monitor "Live HTTP Headers" or "Tamper Data" in order to figure out the image request URI, but I would prefer to create a command line process to do this. My intuition is that it might be possible using python + qtwebkit, but perhaps there is a better way. To clarify: I might have this (overly simplified code)

GA for iOS and custom dimensions

筅森魡賤 提交于 2019-12-21 21:16:57
问题 We've setup Google Analytics in an iOS app which is sending the vendor identifier to distinguish between users on the reports. Here's what we've done: In Google Analytics we've setup a Custom Dimension as follows: Name: User identifier Scope: User Active: True In the app we add the following in the AppDelegate: [tracker set:[GAIFields customDimensionForIndex:1] value:uuidString]; // uuidString is the device identifier In the logging window I can see that the value of cd1 is the correct value

Mobile analytics for android library [closed]

坚强是说给别人听的谎言 提交于 2019-12-21 21:07:14
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am working on android library and wondering which analytics solution would be the best for this purpose. I want to monitor: unique app installations / removals using my library memory consumption, number of background applications while doing some specific operations in my

How to track user usage on site?

限于喜欢 提交于 2019-12-21 20:38:08
问题 I am using PHP/MYSQL. Each time a user logs in we insert the time they logged in and the date they logged in. While its easy for us to tell how many users logged in a particular day i am not sure how to calculate how much time they spent on the site. For instance, just like a user signs in and we insert record into login_tracking table we also update that record when the user hits "logout" with the time they logged out. That way we subtract the time logged in and logged out and we get each

How to get a weighted average for reviews in Excel?

假如想象 提交于 2019-12-21 06:28:22
问题 So here's my challenge. I have a spreadsheet that looks like this: prod_id | pack | value | durable | feat | ease | grade | # of ratings 1 75 85 99 90 90 88 1 2 90 95 81 86 87 88 9 3 87 86 80 85 82 84 37 4 92 80 68 67 45 70 5 5 93 81 94 93 90 90 4 6 93 70 60 60 70 70 1 Each product has individual grade criteria (packaging - ease of use), an overall average grade, and number of ratings the product received. The entire data set I have places 68% of the products within the 80-89 grade range. I

Measuring Site Load Times via performance api

拜拜、爱过 提交于 2019-12-21 05:03:39
问题 I listened to a talk by Steve Souders a few days ago and he mentioned the new performance spec that newer browsers are implementing and it was pretty intriguing. In his speech he mentioned the following example as a means of measuring perceived page load time: var timing = performance.timing; var loadtime = timing.loadEventEnd - timing.navigationStart; alert("Perceived time:"+loadtime); Clearly this is a basic example, but when trying it on my development environment, I get crazy numbers like

How to perform approximate (fuzzy) name matching in R

余生颓废 提交于 2019-12-21 05:00:22
问题 I have a large data set, dedicated to biological journals, which was being composed for a long time by different people. So, the data are not in a single format. For example, in the column "AUTHOR" I can find John Smith, Smith John, Smith J and so on while it is the same person. I can not perform even the simplest actions. For example, I can't figure out what authors wrote the most articles. Is there any way in R to determine if the majority of symbols in the different names is the same, take

How to stop a session in Google mobile analytics v2 for android without EasyTracker

被刻印的时光 ゝ 提交于 2019-12-21 04:03:14
问题 I've read the documentation on the GoogleAnalytics v2 website (I've basically read all the pages from https://developers.google.com/analytics/devguides/) but was not able to find an accurate enough to answer my question. It is either missing or mixed with the version 1 documentation. I know that with EasyTracker, you can set a timeout_session parameter. But I dont want to use EasyTracker and I want to explicitly stop a session at some point in my code. (not setting a timeout) I start a

How dangerous is e.preventDefault();, and can it be replaced by keydown/mousedown tracking?

怎甘沉沦 提交于 2019-12-20 10:47:15
问题 I'm working on a tracking script for a fairly sophisticated CRM for tracking form actions in Google Analytics. I'm trying to balance the desire to track form actions accurately with the need to never prevent a form from not working. Now, I know that doing something like this doesn't work. $('form').submit(function(){ _gaq.push(['_trackEvent', 'Form', 'Submit', $(this).attr('action')]); }); The DOM unloads before this has a chance to process. So, a lot of sample code recommends something like