Add UTM params to website details page

This commit is contained in:
Chris Walsh 2022-07-21 16:22:43 -07:00
parent 92b009fa1e
commit c3d6467b99
No known key found for this signature in database
GPG key ID: 28EE0CCA6032019E
4 changed files with 63 additions and 2 deletions

View file

@ -23,6 +23,7 @@ import usePageQuery from 'hooks/usePageQuery';
import { DEFAULT_ANIMATION_DURATION } from 'lib/constants';
import styles from './WebsiteDetails.module.css';
import ScreenTable from 'components/metrics/ScreenTable';
import UTMTable from 'components/metrics/UTMTable';
const views = {
url: PagesTable,
@ -34,6 +35,7 @@ const views = {
country: CountriesTable,
language: LanguagesTable,
event: EventsTable,
utm: UTMTable,
};
export default function WebsiteDetails({ websiteId }) {
@ -94,6 +96,10 @@ export default function WebsiteDetails({ websiteId }) {
label: <FormattedMessage id="metrics.events" defaultMessage="Events" />,
value: resolve({ view: 'event' }),
},
{
label: <FormattedMessage id="metrics.utm" defaultMessage="UTM" />,
value: resolve({ view: 'utm' }),
},
];
const tableProps = {