mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Fixed UTM calculation.
This commit is contained in:
parent
96af798d42
commit
fb3536c352
4 changed files with 22 additions and 25 deletions
|
|
@ -1,5 +1,5 @@
|
|||
.title {
|
||||
font-size: 18px;
|
||||
font-size: 24px;
|
||||
line-height: 36px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ export default function UTMView() {
|
|||
|
||||
return (
|
||||
<div>
|
||||
{UTM_PARAMS.map(key => {
|
||||
const items = toArray(data[key]);
|
||||
{UTM_PARAMS.map(param => {
|
||||
const items = toArray(data[param]);
|
||||
const chartData = {
|
||||
labels: items.map(({ name }) => name),
|
||||
datasets: [
|
||||
|
|
@ -42,9 +42,9 @@ export default function UTMView() {
|
|||
}, 0);
|
||||
|
||||
return (
|
||||
<div key={key} className={styles.row}>
|
||||
<div key={param} className={styles.row}>
|
||||
<div>
|
||||
<div className={styles.title}>{key}</div>
|
||||
<div className={styles.title}>{param.replace(/^utm_/, '')}</div>
|
||||
<ListTable
|
||||
metric={formatMessage(labels.views)}
|
||||
data={items.map(({ name, value }) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue