web-analytics

Execute A Function When All xmlHttpRequests Are Complete

时间秒杀一切 提交于 2021-01-27 19:09:17
问题 BRIEF I have a website which gets data from an API. So it makes some post and get requests to a server once the website is opened. Let us assume it makes 5 different xmlHttpRequests as soon as the page loads but we cannot exactly know the time each call takes from start to finish. FOR EXAMPLE Call to one endpoint takes 2 seconds to complete and the other one takes 1 second to complete. So that means after 2 seconds both the calls are said to be finished . TO-DO I want to execute a function

SiteCatalyst : Tracking Custom links on Webkit browsers

孤者浪人 提交于 2020-01-14 11:51:32
问题 My query is that I have a link that redirects to another page. In webkit browsers, how to force the sitecatalyst server call (script execution) to finish before the redirect happens? I am using sitecatalyst for a portal. I have configured the custom link call to include the doneAction parameter for successful call completion on webkit browsers (As mentioned in Adobe guide). The custom link code for onClick event of button is as below: <script language="javascript" > function search(keyword) {

what are the values in _ga cookie?

时光总嘲笑我的痴心妄想 提交于 2019-12-28 07:39:04
问题 I am using universal analytics. universal analytics creates first party cookie _ga _ga=1.2.286403989.1366364567; 286403989 is clientId 1366364567 is timestamp what is 1 and 2 in _ga cookie? 回答1: _ga=1.2.286403989.1366364567; 1st Field This is a versioning number. In case the cookie format changes in the future. Seems to be fixed at 1 at the moment. The one above is an old format. Newer cookies have this value set at "GA1" 2nd Field This field is used to figure out the correct cookie in case

Omniture - Is it possible to count number of clicks per special tagged link?

◇◆丶佛笑我妖孽 提交于 2019-12-25 00:07:20
问题 I'm trying to figure out is it possible to track number of clicks per special links via Omniture.js (s_code.js) . For example - Set of links should have something like tag_1 , others tag_2 etc.: <a href="#" data-tag="tag_1">Menu link 1</a> <a href="#" data-tag="tag_1">Menu link 2</a> <a href="#" data-tag="tag_1">Menu link 3</a> <div class="some-wrapper"> <a href="#" data-tag="tag_2">Some button</a> </div> On click I need to +1 for special tag, that's way counting number of clicks per

Upgrading to Google Universal Analytics

邮差的信 提交于 2019-12-23 12:57:40
问题 I have been searching around to find out anything that needs to be taken into consideration when upgrading to Universal Analytics. I found this post: Google Analytics - Upgrading to Async Code He explains that if you are not doing anything advanced you should be ok. We have lots of event tracking in place that we would like to keep the same. We also have some Custom Variables I could do without and/or deal with in Custom Dimensions. Other than that we have a fairly basic setup. We do have a

How do I keep track of how many times an external link is clicked?

狂风中的少年 提交于 2019-12-22 23:19:30
问题 I have a site affiliated with a university and we want to link to another site that has a certain teaching program. How can we track the number of times this link has been clicked from within our website? 回答1: I would use jquery and/or ajax to touch a page in the background (ajax) that counts hits whenever a link is clicked and then proceed to allow the link do what it does. 回答2: You can use web analytics tools such as Google Analytics or commercial software such as WebTrends. 回答3: Instead of

What are the Alternatives to Google Analytics

假如想象 提交于 2019-12-18 13:23:26
问题 I need to Track Unique Visitor count in my web application. I would really like to use Google Analytics but due to the Load limitations that google imposes I will not be able to use them. I am expecting WAY over 10,000 requests a day. This is the limitation that Google web analytics API imposes. Is there another company that has the same features as google analytics that is paid or free? 回答1: There definitely are. Here are two open source and free solutions that are very polished: Piwik -

How to measure visiting time of a user

帅比萌擦擦* 提交于 2019-12-18 03:37:32
问题 I like to measure the time a user spent on a particualr page of my webapp. First i thought about catching the onunload/onbeforeunload event in the browser and notify the server via a XMLHttpRequest that the user is leaving now like: <body onunload="userLeaves('/url/to/current/page',xxx);" ...> ... </body> where xxx is the inital tiemstamp when the page was rendered. Unfortunately this solution doesnt work in all browser (e.g. Opera). So my second idea was to ping the server constantly. To

Web Analytics for Platform with Custom Events

让人想犯罪 __ 提交于 2019-12-12 09:07:42
问题 I'm building a platform that produces websites. Think wordpress.com as a similar example. Each site is going to be a subdomain of my domain like abc.mydomain.com or xyz.mydomain.com. I have a few requirements for analytics of which I haven't been able to meet all of: I would like to be able to see both stats for individual sites and aggregate stats for all sites. I would like to track custom events, like how many contributions users have made. I would like support for any number of subdomains

Adobe Analytics overwriting visitorID

大憨熊 提交于 2019-12-11 11:08:33
问题 I need to overwrite the default visitorID, that's automatically set by Adobe Analytics s_code, with a custom value. As explained here, I may set the s.visitorID variable for this purpose but It's not clear to me how, and overall when, doing so. I guess this variable should be set into the s_code itself but I fear that the automatic visitorID would be used anyway for the first s.t() call, in the place of the custom value I'd like to use. In fact, I want that since the first automatic request