Peter Coombe
9:43 AM (6 minutes ago)
to Andrew, Jessica, Megan, fr-tech, me
Yeah, that's what I thought was most likely. I tried to add a delay on it for our last test, but botched the javascript somehow. Will take another look at doing that.
From @AndyRussG
Hi! Just to mention, I don't see anything wrong immediately... Maybe the order in which scripts are running? That is, maybe sometimes we get to this code before mw.popups has been set? We should definitely figure it out... cc'ing fr-tech and David. Thanks!!! Cheers, Andrew
On 15/09/17 12:55 PM, Peter Coombe wrote:
Hi Andy,
We've been running further tests with the new page previews feature (previously known as "Hovercards") on desktop. Reading enabled it for 3% of users on English Wikipedia, and confirmed this was working in https://phabricator.wikimedia.org/T175377.
I added the following code to the alterImpressionData.js template used in banners, to hopefully register the test in a similar manner to what we did previously.
if ( mw.centralNotice.data.banner.indexOf('en6C_dsk') !== -1 ) { var popupsEnabled = false; if ( mw.popups ) { if ( mw.popups.isEnabled() ) { popupsEnabled = true; } } mediaWiki.centralNotice.registerTest( ( popupsEnabled ? 'popupsEnabled' : 'popupsDisabled' ) ); }
However we only saw about 1.6% of our large banner impressions registered with popupsEnabled, half the 3% we would expect. (results). Can you see any obvious reason this might be going wrong?
Thanks,
Peter
Peter Coombe
9:43 AM (6 minutes ago)
to Andrew, Jessica, Megan, fr-tech, me
Yeah, that's what I thought was most likely. I tried to add a delay on it for our last test, but botched the javascript somehow. Will take another look at doing that.