google-analytics

handle urls with hash # with google analytics

荒凉一梦 提交于 2019-12-09 19:39:47
问题 I'm developing a js single-page web application using a javascript client side mvc (angular.js in this case) I added google analytic to the site, but from what I could see so far (at least in realtime) google doesn't take into account the part of the uri after the hash that is I have a url like mydomain.com.ar/#/ideas/1 but for google analytics it looks just like mydomain.com.ar/ any idea? 回答1: You need to parse the parameters after # and send the data by using _trackPageview in order to see

Google Analytics Hits sent but not visible on Analytics console

£可爱£侵袭症+ 提交于 2019-12-09 18:27:33
问题 I have been trying to implement Google Analytics in my app by following the steps on the official documentation by Google. After completing the coding part, I moved on to the analytics console to see if I received any hits. I waited for almost 2 days but did not see any progress. I then tried to debug the problem by using GAv4 tag in my logcat. I got the following log, 07-14 11:11:22.734 31016-31016/com.dhinchek.user I/GAv4: Google Analytics 9.0.80 is starting up. To enable debug logging on a

Does Google Analytics have a “heartbeat” function for long running web applications?

天涯浪子 提交于 2019-12-09 18:18:33
问题 I'm making a web application that's focused around watching embedded content. I would like the application client to send a "heartbeat" type of signal to GA (Google Analytics) to keep the session going. It seems now that if the visitor watches a video for 5-10 minutes GA assumes that he has left the page and registers an action from the user as a new session. I'm making this assumption after I got a few hundred people to test the application and the GA Real-time beta registered ~100 people on

Setting Max Results in API v4 (python)

天涯浪子 提交于 2019-12-09 18:12:08
问题 In v3 of the API I'm seeing that there was a max-results parameter that could be passed to get more than 1000 records. I haven't been able to figure out how to pass that parameter in v4 of the API using python. My code looks something like below. I've commented out my best guess at max_result. def get_report(analytics): # Use the Analytics Service Object to query the Analytics Reporting API V4. return analytics.reports().batchGet( body={ 'reportRequests': [ { 'viewId': VIEW_ID, #'max_results'

Parsing __utmz tracking cookie to get referral

你说的曾经没有我的故事 提交于 2019-12-09 17:17:55
问题 I use Google Analytics on my site, and I want to read __umtz cookie to get referring link. I made some research and I wrote such code: $refer=explode('utmcsr=',$_COOKIE['__utmz']); if(count($refer)>1) $refer=explode('|',$refer[1]); $refer=addslashes($refer[0]); The problem is, this is not always working, sometimes I get junk as result. What I am doing wrong? Maybe someone have a good description of this cookie? 回答1: Check my Google Analytics Cookie Parser. Google Analytics PHP Cookie Parser

Google Analytics V3 for Android: Service unavailable (code=1), using local store

梦想与她 提交于 2019-12-09 14:45:39
问题 I've implemented GAv3 in my app for Android as it described in official tutorial. I'm getting the following warnings in logcat: W/GAV3 ( 3031): Thread[GAThread,5,main]: Service unavailable (code=1), will retry. I/GAV3 ( 3031): Thread[GAThread,5,main]: No campaign data found. W/GAV3 ( 3031): Thread[Service Reconnect,5,main]: Service unavailable (code=1), using local store. There is high-speed internet access, tracking id is set properly. And I see no statistics for my devices. Tested on

GoogleAnalyticsTracker javadoc

送分小仙女□ 提交于 2019-12-09 14:00:35
问题 Where can I find the javadoc for Google Analytics for Android? I searched for it on the project homepage, but couldn't find it anywhere. 回答1: You can find the Google Analytics for Android javadocs in the "javadocs.zip" file in the "GoogleAnalyticsAndroid.zip" file, which the "libGoogleAnalyticsV2.jar" comes within. Download it here. 回答2: There is a Google Code page for Anaylytics, it shows you how to use the API. Analytics-api-sample. You will probably have to check it out from SVN to use it.

Google Analytics - Tracking multiple websites (top-level domains)

你。 提交于 2019-12-09 13:19:33
问题 I have 10 top-level domains e.g. example1.com, example2.com, example3.com, etc, and each domain has its own, unique website (not redirects). My goal is to have one Google Analytics account and one web property for all 10 websites, a master profile (the default) that shows me metrics of all websites combined, and 10 individual profiles for each website to limit the view to just that website... as if it had its own Google Analytics account. After much research and reading, I think I determined

“1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number call:” on Indy

空扰寡人 提交于 2019-12-09 12:01:19
问题 I have a web app that makes frequent TIdHTTP calls to the Google Analytics API (around 25,000-50,000 per day). Every so often calls to the API fail with the error message in the subject line (not often - less than 1 out of 1000 times). I have never been able to find a pattern to get it to happen. And retrying the failed call usually works. So it seems entirely random. I have the latest version of openssl (1.0.2.1 - 03/20/2015). And the latest version of Indy (source code files dated 01/07

Tracking how many times an HTML5 audio element is played?

旧城冷巷雨未停 提交于 2019-12-09 11:59:35
问题 What is the best way to track how many times an HTML5 audio element is played? (we can use Google Analytics too, if that is the best approach) 回答1: HTML5 Audio elements have basic callbacks. You can combine that with a basic event callback library like jQuery to attach these events by default: $("audio").bind("play", function(){ _gaq.push(["_trackEvent","Audio", "play", $(this).attr('src')]); }); You can also do similar events for tracking when people finish the audio: $("audio").bind("ended"