From ec77f92f59e6e976d288b4f13a252676afddcf00 Mon Sep 17 00:00:00 2001 From: Daniel Walmsley Date: Tue, 2 Feb 2016 11:53:33 -0800 Subject: [PATCH] try to remove a couple more URLs that are exploding in Grafana --- client/analytics/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/analytics/index.js b/client/analytics/index.js index c5b35a9d63baa1..f75c2f6000d98a 100644 --- a/client/analytics/index.js +++ b/client/analytics/index.js @@ -169,6 +169,10 @@ var analytics = { featureSlug = 'domains_add_suggestion__suggestion__domain'; } else if ( startsWith( document.location.pathname, '/plugins/browse/' ) ) { featureSlug = 'plugins_browse__site'; + } else if ( featureSlug.match( /^plugins_[^_].*__/ ) ) { + featureSlug = 'plugins__site__plugin'; + } else if ( featureSlug.match( /^plugins_[^_]/ ) ) { + featureSlug = 'plugins__site__unknown'; // fail safe because there seems to be some URLs we're not catching } else if ( startsWith( featureSlug, 'read_post_feed_' ) ) { featureSlug = 'read_post_feed__id'; } else if ( startsWith( featureSlug, 'read_post_id_' ) ) {