diff --git a/lib/plugins/crux/index.js b/lib/plugins/crux/index.js index 4660d5095..ce64724d8 100644 --- a/lib/plugins/crux/index.js +++ b/lib/plugins/crux/index.js @@ -39,10 +39,13 @@ module.exports = { path.resolve(__dirname, 'pug', 'index.pug'), 'utf8' ); - context.filterRegistry.registerFilterForType( - DEFAULT_METRICS_PAGESUMMARY, - 'crux.pageSummary' - ); + + if (this.options.collect === 'ALL' || this.options.collect === 'URL') { + context.filterRegistry.registerFilterForType( + DEFAULT_METRICS_PAGESUMMARY, + 'crux.pageSummary' + ); + } context.filterRegistry.registerFilterForType( DEFAULT_METRICS_SUMMARY,