[Bug 52287] Helper for logging link clicks

2014-09-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #10 from Gerrit Notification Bot gerritad...@wikimedia.org ---
Change 162194 had a related patch set uploaded by Prtksxna:
Add sendBeacon function

https://gerrit.wikimedia.org/r/162194

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-09-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #11 from Gerrit Notification Bot gerritad...@wikimedia.org ---
Change 116260 abandoned by Prtksxna:
Add logUnlessTimeout function

https://gerrit.wikimedia.org/r/116260

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-08-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #8 from Matthew Flaschen mflasc...@wikimedia.org ---
For this particular use case, there is also the ping attribute of the a
element
(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-ping), but I
think that would require a special server-side handler and I don't know what
the browser support is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-08-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #9 from nuria nu...@wikimedia.org ---
The beacon API just made it into chrome, which, as you know, it is made for
this very purpose.

https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-06-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Tisza Gergő gti...@wikimedia.org changed:

   What|Removed |Added

 Blocks||56426

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #6 from nuria nu...@wikimedia.org ---
This does not introduce a fixed or minimum client-side delay.  On the 
contrary, it sets a maximum possible delay due to logging.  
I understand that this change is better than blocking or 'arbitrary' delays. 
Let me rephrase: it introduces a delay as every page viewing is been delayed
ad minimum by the amount of time it takes for the event to be logged (1 round
trip). Ad maximum, as you noted, the delay would be 500ms. Correct?

We only have loading times for content pages (not bits domain) so we cannot
provide loading times for bits but working with what we have: have in mind that
time to 1st byte for one of our content pages served from cache might very well
be over 500ms in some parts of the world at the 50th percentile. Even if bits
is 5 times faster the event reporting time still would take ~100ms (I know,
totally wild guess here, but I am trying to make the point that adding 100ms to
page load time might not justify the data we are gathering). 

A plot we made for an unrelated project to illustrate RT times (note percentile
90, RT time is over 1 sec)
https://www.mediawiki.org/wiki/Analytics/Reports/ULSFOImpact#mediaviewer/File:ResponseStart-connectStart-ASIA.png


 The preferable option I can see would be storing those events locally and
 polling as needed to report them. This works well for logging internal page
 clickthrough.

By internal page do you mean without leaving the site or without leaving 
the page?
w/o leaving the site

I agree this is preferable, but browser support is an important issue.  Also, 
if they leave the site, it won't work, but so far we've been concerned with 
same-site links.

If that is the case could we implement a localstorage/polling solution for
browsers that support it?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Matthew Flaschen mflasc...@wikimedia.org changed:

   What|Removed |Added

 CC||aaron.halfa...@gmail.com

--- Comment #7 from Matthew Flaschen mflasc...@wikimedia.org ---
(In reply to nuria from comment #6)
 I understand that this change is better than blocking or 'arbitrary' delays. 
 Let me rephrase: it introduces a delay as every page viewing is been delayed
 ad minimum by the amount of time it takes for the event to be logged (1
 round trip). Ad maximum, as you noted, the delay would be 500ms. Correct?

Yes, at maximum, the delay would be 500 ms.

 Even if bits is 5 times faster the event reporting time still would take
 ~100ms (I know, totally wild guess here, but I am trying to make the point
 that adding 100ms to page load time might not justify the data we are
 gathering). 

Right, if we go this route, it's a cost-benefit analysis.  I agree 500 ms (and
even less) has an impact on some users, even if subconscious
(http://googleresearch.blogspot.com/2009/06/speed-matters.html).

 I agree this is preferable, but browser support is an important issue.  
 Also, if they leave the site, it won't work, but so far we've been 
 concerned with same-site links.
 
 If that is the case could we implement a localstorage/polling solution for
 browsers that support it?

Yes.  Actually, it may be able to use jquery.jStorage, which is already in core
and has broad browser support (IE6+, Firefox 2+, Safari 4+, Chrome 4+ and Opera
10.5+) by being able to use localStorage, globalStorage, and userData.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #4 from nuria nu...@wikimedia.org ---
Commenting in more detail here what we have been talking about on IRC:

Introducing client side delays is not optimal because it produces a slower UX
that users might otherwise have but, not only that, it is double-worrisome(?)
cause from a performance data standpoint those delays are impossible to detect. 

Example: the analytics team just reported recently page timings for all pages
around the world. The delay introduced by this logging would not be present
in any way on those numbers. So we would be presenting data that says, the 50th
percentile in the US is 400ms for page loading times. Now, that would be not at
all be what the user saw if we introduce arbitrary client side delays. In
reality the user is seeing 400ms + delay. 

That being said, this is not an easy problem to solve for full page reloads
and, as ori noted above, the good solution is the beacon API.

The preferable option I can see would be storing those events locally and
polling as needed to report them. This works well for logging internal page
clickthrough. Even for browsers that do not have localStorage (IE8) events can
be logged into a in-memory hashmap. 

Now, the caveat is that the system does not work so well to log external
clicks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #5 from Matthew Flaschen mflasc...@wikimedia.org ---
(In reply to nuria from comment #4)
 Commenting in more detail here what we have been talking about on IRC:
 
 Introducing client side delays is not optimal because it produces a slower
 UX that users might otherwise have but, not only that, it is
 double-worrisome(?) cause from a performance data standpoint those delays
 are impossible to detect.

This does not introduce a fixed or minimum client-side delay.  On the contrary,
it sets a maximum possible delay due to logging.  With the current EventLogging
code, the choices are:

1. Block the normal link navigation, wait for the logging to finish, then go to
the target URL when the logging is done.  This works fine in a performant
scenario, but if the server hangs, or takes a long time to return, they will
not make it to the next page (not sure what happens if the browser itself
detects it as a timeout internally).

2. Don't block normal link navigation (logging might not work if link
navigation happens before the logging network request).

3. Use a compromise solution like this, where it tries to log normally, and if
logging is taking longer than expected (500 ms in the code sketched above), do
the navigation anyway.

Looking at the patch (which I think is based on prior code at
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FGettingStarted.git/b66689ef823c759067d4f16c8a894758b727db60/resources%2Fext.gettingstarted.logging.js#L64),
note that logEvent returns a promise, which is then chained to the dfd
deferred.

So in a normal scenario, EventLogging will finish logging (as fast as it is
currently), then it will resolve, which will chain to dfd.resolve (which
triggers the always callback) and trigger URL navigation immediately after the
logging.

In a bad scenario, the code says (if the setTimeout is hit, meaning they still
haven't changed pages) EventLogging still hasn't finished logging the event
after 500 ms.  Forget it, I'll go to the target URL anyway and not wait for
logging to be confirmed complete.

500 ms is a maximum delay/fail-safe if EventLogging is not responding normally,
not a minimum delay.

 The preferable option I can see would be storing those events locally and
 polling as needed to report them. This works well for logging internal page
 clickthrough.

By internal page do you mean without leaving the site or without leaving
the page?

I agree this is preferable, but browser support is an important issue.  Also,
if they leave the site, it won't work, but so far we've been concerned with
same-site links.

 Even for browsers that do not have localStorage (IE8) events
 can be logged into a in-memory hashmap. 

An in-memory hashmap will only work if they don't leave the page, right?  The
current logging mechanism already works fine if there is not a full page load
due to a link; an enhancement is not necessary for same-page actions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #2 from Matthew Flaschen mflasc...@wikimedia.org ---
Are you still planning to do this?  If not, Growth might.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

--- Comment #3 from Gerrit Notification Bot gerritad...@wikimedia.org ---
Change 116260 had a related patch set (by Prtksxna) published:
Add logUnlessTimeout function

https://gerrit.wikimedia.org/r/116260

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-04-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Gerrit Notification Bot gerritad...@wikimedia.org changed:

   What|Removed |Added

 Status|NEW |PATCH_TO_REVIEW

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-03-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Prateek Saxena psax...@wikimedia.org changed:

   What|Removed |Added

 CC||psax...@wikimedia.org
   Assignee|wikibugs-l@lists.wikimedia. |psax...@wikimedia.org
   |org |

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2014-02-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

 CC||nu...@wikimedia.org,
   ||tneg...@wikimedia.org
  Component|EventLogging|EventLogging
   Assignee|o...@wikimedia.org   |wikibugs-l@lists.wikimedia.
   ||org
Product|MediaWiki extensions|Analytics

--- Comment #1 from Andre Klapper aklap...@wikimedia.org ---
[moving from MediaWiki extensions to Analytics product - see bug 61946]

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 52287] Helper for logging link clicks

2013-07-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=52287

Matthew Flaschen mflasc...@wikimedia.org changed:

   What|Removed |Added

   See Also||https://bugzilla.wikimedia.
   ||org/show_bug.cgi?id=42815

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l