Skip to content

Commit

Permalink
Merge pull request #3000 from Automattic/fix/metric_explosion_grafana
Browse files Browse the repository at this point in the history
Fix metric explosion in grafana
  • Loading branch information
gravityrail committed Feb 2, 2016
2 parents ac5a9ab + b84f3a1 commit d238578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_' ) ) {
Expand Down

0 comments on commit d238578

Please sign in to comment.