analytics

JavaScript Remove special characters string not working

爱⌒轻易说出口 提交于 2019-12-18 09:37:22
问题 I'm trying to remove special characters that could appear within my Google Analytics tags, as the special characters seem to be causing script errors in some versions of IE. I have this function: function removeSplChars(inStr) { inStr = inStr.replace(/[^a-zA-Z0-9 ]/g, ""); return inStr; } and there is the GA code that currently works: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '<c:out value="${profileId}"/>']); <c:choose> <c:when test="${(lastCmdName eq

Is there a way track the focus on tab with Javascript?

爱⌒轻易说出口 提交于 2019-12-18 00:29:30
问题 We need to track the EFFECTIVE time on site of our users Most users, when they're done, leave the tab open and move to another tab Time on site it's extremely inaccurate Is there a Javascript Event to track the "loss of focus" of the current tab ? 回答1: This should work both on tab switch and on browser window losing focus: function onBlur() { document.body.className = 'blurred'; }; function onFocus(){ document.body.className = 'focused'; }; if (/*@cc_on!@*/false) { // check for Internet

Flurry Analytics vs Google Analytics on the mobile platform [closed]

泄露秘密 提交于 2019-12-17 22:12:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am working on a mobile app on the Android platform (and going forward for the iPhone) and am evaluating the Flurry Analytics and

Google Analytics API and .Net

假如想象 提交于 2019-12-17 17:29:21
问题 Google announced the Analytics Data Export API some days ago, thereby making it much easier to get analytics data for a site. The API debuted with Java and Javascript clients, but no direct .Net support (other than going straight for the XML). It seems the API is similar to the other Google Data APIs though, and there's a .Net client for those. Has anyone tried using the components in that library to get at the analytics data? I'm in the process of building an ASP.Net MVC site and thought I'd

How to export Firebase analytics data

不羁的心 提交于 2019-12-17 12:46:09
问题 I'm trying to figure out if it's possible to export all the Firebase Analytics data to an excel spreadsheet, similar to how you can do it with Google Analytics. From what I can find the only way to go about doing it is to link with BigQuery then do some SQL statements to build a table and export. Unfortunately for us this is not going to work (due to client budget and capabilities). Is there any other way to export this data that I'm missing? 回答1: Update : You can now export the analytics

Tell bots apart from human visitors for stats?

此生再无相见时 提交于 2019-12-17 04:16:24
问题 I am looking to roll my own simple web stats script. The only major obstacle on the road, as far as I can see, is telling human visitors apart from bots. I would like to have a solution for that which I don't need to maintain on a regular basis (i.e. I don't want to update text files with bot-related User-agents). Is there any open service that does that, like Akismet does for spam? Or is there a PHP project that is dedicated to recognizing spiders and bots and provides frequent updates? To

Send analytic data to different domain without response

旧时模样 提交于 2019-12-14 04:23:14
问题 Precondition I own mysite.com I do not own othersite.com , but I can embed javascript code there Question How to send analytic data from othersite.com to mysite.com ? Expected : othersite.com client -> mysite.com server Not expected : othersite.com client -> othersite.com server -> mysite.com server Its principle seems like to be similar with Google Analytics , but I don't know the exact principle I know that it couldn't be done by ajax due to cross-domain problem How does it change if I own

How to track app open in parse analytics using javascript?

廉价感情. 提交于 2019-12-14 03:13:53
问题 I am using parse and I want to track app open and other events. I have seen an example in their documentation var dimensions = { // Define ranges to bucket data points into meaningful segments priceRange: '1000-1500', // Did the user filter the query? source: 'craigslist', // Do searches happen more often on weekdays or weekends? dayType: 'weekday' }; // Send the dimensions to Parse along with the 'search' event Parse.Analytics.track('search', dimensions); This updates Analytics Requests on

Google Analytics code: can it go before in the document?

大憨熊 提交于 2019-12-14 03:05:34
问题 Google recommends to put the analytics code just before the <body> tag. I'm trying to integrate ecommerce in my site and it'd be easier to call pageTracker._addTrans from other places than the footer. Will it be ok if I change ... <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script>

Track YouTube Video Playback with jQuery and Google Analytics Events

时光怂恿深爱的人放手 提交于 2019-12-13 18:01:35
问题 I have 4 iframe and I want to recover by clicking on their id . I walked my iframe using google analytic and I put their id in a table. Then I create an object of type YT.Player Probleme : the method onPlayerStateChange does not run . here is my code : <script type="text/javascript"> /* YouTube Analytics Code adapted from: http://www.lunametrics.com/blog/2012/10/22/automatically-track-youtube-videos-events-google-analytics/ http://lunametrics.wpengine.netdna-cdn.com/js/lunametrics-youtube.js