Merge "Record pageviews where Reference Previews is enabled"

This commit is contained in:
jenkins-bot 2019-10-25 08:12:06 +00:00 committed by Gerrit Code Review
commit adcbf91237
4 changed files with 7 additions and 1 deletions

View file

@ -58,7 +58,7 @@
},
"EventLoggingSchemas": {
"Popups": 18904225,
"ReferencePreviewsPopups": 19413125,
"ReferencePreviewsPopups": 19489344,
"VirtualPageView": 17780078
},
"config": {

Binary file not shown.

Binary file not shown.

View file

@ -10,6 +10,12 @@ const KNOWN_TYPES = [ 'book', 'journal', 'news', 'web' ];
const LOGGING_SCHEMA = 'event.ReferencePreviewsPopups';
$( function () {
if ( mw.config.get( 'wgPopupsReferencePreviews' ) ) {
mw.track( LOGGING_SCHEMA, { action: 'pageview' } );
}
} );
/**
* @param {ext.popups.ReferencePreviewModel} model
* @return {JQuery}