mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Allow filtering of events with url.
This commit is contained in:
parent
1cff704379
commit
f69dbaeaf6
2 changed files with 11 additions and 6 deletions
|
|
@ -83,12 +83,13 @@ export default async (req, res) => {
|
|||
|
||||
const data = await getPageviewMetrics(websiteId, startDate, endDate, column, table, {
|
||||
domain,
|
||||
url: type !== 'url' ? url : undefined,
|
||||
url: type !== 'url' && table !== 'event' ? url : undefined,
|
||||
referrer: type !== 'referrer' ? referrer : undefined,
|
||||
os: type !== 'os' ? os : undefined,
|
||||
browser: type !== 'browser' ? browser : undefined,
|
||||
device: type !== 'device' ? device : undefined,
|
||||
country: type !== 'country' ? country : undefined,
|
||||
event_url: type !== 'url' && table === 'event' ? url : undefined,
|
||||
});
|
||||
|
||||
return ok(res, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue