mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 18:45:36 +01:00
implement UTM filters and fields
This commit is contained in:
parent
7514af4236
commit
49adaa32d0
11 changed files with 336 additions and 55 deletions
|
|
@ -4,10 +4,14 @@ import {
|
|||
AppWindow,
|
||||
Cpu,
|
||||
Earth,
|
||||
Fingerprint,
|
||||
Globe,
|
||||
KeyRound,
|
||||
Landmark,
|
||||
Languages,
|
||||
Laptop,
|
||||
Layers,
|
||||
Link2,
|
||||
LogIn,
|
||||
LogOut,
|
||||
MapPin,
|
||||
|
|
@ -15,9 +19,11 @@ import {
|
|||
Monitor,
|
||||
Network,
|
||||
Search,
|
||||
Send,
|
||||
Share2,
|
||||
SquareSlash,
|
||||
Tag,
|
||||
Target,
|
||||
Type,
|
||||
} from '@/components/icons';
|
||||
import { Lightning } from '@/components/svg';
|
||||
|
|
@ -154,6 +160,41 @@ export function WebsiteExpandedMenu({
|
|||
},
|
||||
].filter(filterExcluded),
|
||||
},
|
||||
{
|
||||
label: formatMessage(labels.utm),
|
||||
items: [
|
||||
{
|
||||
id: 'utmSource',
|
||||
label: formatMessage(labels.source),
|
||||
path: updateParams({ view: 'utmSource' }),
|
||||
icon: <Link2 />,
|
||||
},
|
||||
{
|
||||
id: 'utmMedium',
|
||||
label: formatMessage(labels.medium),
|
||||
path: updateParams({ view: 'utmMedium' }),
|
||||
icon: <Send />,
|
||||
},
|
||||
{
|
||||
id: 'utmCampaign',
|
||||
label: formatMessage(labels.campaign),
|
||||
path: updateParams({ view: 'utmCampaign' }),
|
||||
icon: <Target />,
|
||||
},
|
||||
{
|
||||
id: 'utmContent',
|
||||
label: formatMessage(labels.content),
|
||||
path: updateParams({ view: 'utmContent' }),
|
||||
icon: <Layers />,
|
||||
},
|
||||
{
|
||||
id: 'utmTerm',
|
||||
label: formatMessage(labels.term),
|
||||
path: updateParams({ view: 'utmTerm' }),
|
||||
icon: <KeyRound />,
|
||||
},
|
||||
].filter(filterExcluded),
|
||||
},
|
||||
{
|
||||
label: formatMessage(labels.other),
|
||||
items: [
|
||||
|
|
@ -173,7 +214,7 @@ export function WebsiteExpandedMenu({
|
|||
id: 'distinctId',
|
||||
label: formatMessage(labels.distinctId),
|
||||
path: updateParams({ view: 'distinctId' }),
|
||||
icon: <Tag />,
|
||||
icon: <Fingerprint />,
|
||||
},
|
||||
{
|
||||
id: 'tag',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue