Skip to content

Commit

Permalink
Fix trackpageview
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Oct 29, 2020
1 parent 0c832f4 commit 963fd72
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ export function ServiceInventory() {
}
}, [data.hasLegacyData, core.http.basePath, core.notifications.toasts]);

// Tracking both of these to keep our data backwards compatible
// The page is called "service inventory" to avoid confusion with the
// "service overview", but this is tracked in some dashboards because it's the
// initial landing page for APM, so it stays as "services_overview" (plural.)
// for backward compatibility.
useTrackPageview({ app: 'apm', path: 'services_overview' });
useTrackPageview({ app: 'apm', path: 'service_inventory' });
useTrackPageview({ app: 'apm', path: 'services_overview', delay: 15000 });
useTrackPageview({ app: 'apm', path: 'service_inventory', delay: 15000 });

const localFiltersConfig: React.ComponentProps<typeof LocalUIFilters> = useMemo(
() => ({
Expand Down

0 comments on commit 963fd72

Please sign in to comment.