feat: add host
This commit is contained in:
@@ -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) },
|
||||
|
||||
Reference in New Issue
Block a user