EBernhardson created this task.
EBernhardson added a project: Wikidata Query UI.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  The UI used for the wiki commons query service currently collects no metrics, 
even though the UI has metric tracking built in.
  
  This looks to be due to the following function which throws out any attempt 
to track on commons query:
  
    SELF.prototype.track = function( metricName, value, valueType ) {
        if ( !value ) {
            value = 1;
        }
        if ( !valueType ) {
            valueType = 'c';
        }
    
        if (
            location.hostname !== 'query.wikidata.org' ||
            /^1|yes/.test( navigator.doNotTrack || window.doNotTrack )
        ) {
            // skip tracking
            return $.when();
        }
    
        // https://www.wikidata.org/beacon/statsv?test.statsv.foo2=5c
        return this._track( metricName + '=' + value + valueType );
    };
  
  AC: Metrics are collected from the UI for commons-query.wikimedia.org

TASK DETAIL
  https://phabricator.wikimedia.org/T308786

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: EBernhardson
Cc: MPhamWMF, EBernhardson, Aklapper, AWesterinen, CBogen, Namenlos314, Gq86, 
Lucas_Werkmeister_WMDE, Mahir256, EBjune, merbst, Salgo60, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to