src/Placement.js
/**
         * Applies response data to future metric events
         * @private
         */
Applies response data to future metric events
@private
Applies response data to future metric events @private
_updateBaseMetaFromResponse() {
            const data = (this._response|| {}).data || {};
            this._metricBase.m = this._metricBase.m || {};
            const meta = this._metricBase.m;
            if (data.article) meta.aid = data.article.id;
            if (data.test && data.test.enabled) {
                meta.pten = 1;
                meta.ptid = data.test.id;
                meta.ptseed = data.test.seed;
            } else {
                meta.pten = 0;
            }
        }
_updateBaseMetaFromResponse ( ) { const data = ( this . _response || { } ) . data || { } ; this . _metricBase . m = this . _metricBase . m || { } ; const meta = this . _metricBase . m ; if ( data . article ) meta . aid = data . article . id ; if ( data . test && data . test . enabled ) { meta . pten = 1 ; meta . ptid = data . test . id ; meta . ptseed = data . test . seed ; } else { meta . pten = 0 ; } }
Applies response data to future metric events
 @private
Applies response data to future metric events @private
// Update the base metric data with info from the response // Article