diff --git a/components/metrics/EventsTable.js b/components/metrics/EventsTable.js index c415a3e9..437942fb 100644 --- a/components/metrics/EventsTable.js +++ b/components/metrics/EventsTable.js @@ -17,7 +17,7 @@ export default function EventsTable({ websiteId, ...props }) { } const Label = ({ value }) => { - const [event, label] = value.split(':'); + const [event, label] = value.split('\t'); return ( <> {event} diff --git a/pages/api/website/[id]/metrics.js b/pages/api/website/[id]/metrics.js index 2aca489f..ef736ee0 100644 --- a/pages/api/website/[id]/metrics.js +++ b/pages/api/website/[id]/metrics.js @@ -20,7 +20,7 @@ function getTable(type) { function getColumn(type) { if (type === 'event') { - return `concat(event_type, ':', event_value)`; + return `concat(event_type, '\t', event_value)`; } return type; }