Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Reorder UTM params.

Mike Cao57e64893cf0d
diff --git a/src/app/(main)/reports/utm/UTMView.tsx b/src/app/(main)/reports/utm/UTMView.tsx
index 11a64edbf..16b275888 100644
--- a/src/app/(main)/reports/utm/UTMView.tsx
+++ b/src/app/(main)/reports/utm/UTMView.tsx
@@ -2,6 +2,7 @@ import { useContext } from 'react';
import { firstBy } from 'thenby';
import { ReportContext } from '../[reportId]/Report';
import styles from './UTMView.module.css';
+import { UTM_PARAMS } from 'lib/constants';
function toArray(data: { [key: string]: number }) {
return Object.keys(data)
@@ -21,7 +22,7 @@ export default function UTMView() {
return (
<div>
- {Object.keys(data).map(key => {
+ {UTM_PARAMS.map(key => {
return (
<div key={key}>
<div className={styles.title}>{key}</div>