mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
feat: add host
This commit is contained in:
parent
a38baa50af
commit
7152b0b76d
11 changed files with 61 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ export function useWebsitePageviews(websiteId: string, options?: { [key: string]
|
|||
const { startDate, endDate, unit } = dateRange;
|
||||
const { timezone } = useTimezone();
|
||||
const {
|
||||
query: { url, referrer, os, browser, device, country, region, city, title },
|
||||
query: { url, referrer, host, os, browser, device, country, region, city, title },
|
||||
} = useNavigation();
|
||||
|
||||
const params = {
|
||||
|
|
@ -17,6 +17,7 @@ export function useWebsitePageviews(websiteId: string, options?: { [key: string]
|
|||
timezone,
|
||||
url,
|
||||
referrer,
|
||||
host,
|
||||
os,
|
||||
browser,
|
||||
device,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export function useWebsiteStats(websiteId: string, options?: { [key: string]: st
|
|||
const [dateRange] = useDateRange(websiteId);
|
||||
const { startDate, endDate } = dateRange;
|
||||
const {
|
||||
query: { url, referrer, title, os, browser, device, country, region, city },
|
||||
query: { url, referrer, host, title, os, browser, device, country, region, city },
|
||||
} = useNavigation();
|
||||
|
||||
const params = {
|
||||
|
|
@ -13,6 +13,7 @@ export function useWebsiteStats(websiteId: string, options?: { [key: string]: st
|
|||
endAt: +endDate,
|
||||
url,
|
||||
referrer,
|
||||
host,
|
||||
title,
|
||||
os,
|
||||
browser,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ export function useFields() {
|
|||
{ name: 'url', type: 'string', label: formatMessage(labels.url) },
|
||||
{ name: 'title', type: 'string', label: formatMessage(labels.pageTitle) },
|
||||
{ name: 'referrer', type: 'string', label: formatMessage(labels.referrer) },
|
||||
{ name: 'host', type: 'string', label: formatMessage(labels.host) },
|
||||
{ name: 'query', type: 'string', label: formatMessage(labels.query) },
|
||||
{ name: 'browser', type: 'string', label: formatMessage(labels.browser) },
|
||||
{ name: 'os', type: 'string', label: formatMessage(labels.os) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue