mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
Merge "Record pageviews where Reference Previews is enabled"
This commit is contained in:
commit
adcbf91237
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
"EventLoggingSchemas": {
|
||||
"Popups": 18904225,
|
||||
"ReferencePreviewsPopups": 19413125,
|
||||
"ReferencePreviewsPopups": 19489344,
|
||||
"VirtualPageView": 17780078
|
||||
},
|
||||
"config": {
|
||||
|
|
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue