Merge "Restore MobileWebMainMenuClickTracking logging (old way)"
This commit is contained in:
commit
e919258047
|
@ -1,8 +1,14 @@
|
||||||
// This initialises EventLogging for main menu and some prominent links in the UI.
|
// This initialises EventLogging for main menu and some prominent links in the UI.
|
||||||
// This code should only be loaded on the Minerva skin, it does not apply to other skins.
|
// This code should only be loaded on the Minerva skin, it does not apply to other skins.
|
||||||
// @deprecated and to be removed the moment that T220016 is live.
|
// @deprecated and to be removed the moment that T220016 is live.
|
||||||
var mainMenu = require( './menu.js' );
|
var mainMenu = require( './menu.js' ),
|
||||||
|
logging = require( './menu/schema.js' );
|
||||||
|
|
||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
mainMenu.enableLogging();
|
mw.loader.using( [
|
||||||
|
'ext.eventLogging'
|
||||||
|
] ).then( function () {
|
||||||
|
logging();
|
||||||
|
mainMenu.enableLogging();
|
||||||
|
} );
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
mw.loader.using( [
|
module.exports = function () {
|
||||||
'ext.eventLogging'
|
|
||||||
] ).then( function () {
|
|
||||||
var M = mw.mobileFrontend,
|
var M = mw.mobileFrontend,
|
||||||
user = mw.user,
|
user = mw.user,
|
||||||
editCount = mw.config.get( 'wgUserEditCount' ),
|
editCount = mw.config.get( 'wgUserEditCount' ),
|
||||||
|
@ -50,4 +48,4 @@ mw.loader.using( [
|
||||||
mw.trackSubscribe( 'minerva.schemaMobileWebMainMenuClickTracking', function ( topic, data ) {
|
mw.trackSubscribe( 'minerva.schemaMobileWebMainMenuClickTracking', function ( topic, data ) {
|
||||||
schemaMobileWebMainMenuClickTracking.log( data );
|
schemaMobileWebMainMenuClickTracking.log( data );
|
||||||
} );
|
} );
|
||||||
} );
|
};
|
||||||
|
|
Loading…
Reference in New Issue