mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
add dropdown logic for revenue report, defaults to USD for unknown currency code
This commit is contained in:
parent
214396f4b6
commit
be50e8a575
8 changed files with 155 additions and 12 deletions
|
|
@ -56,11 +56,11 @@ export function TestConsole({ websiteId }: { websiteId: string }) {
|
|||
}));
|
||||
window['umami'].track('checkout-cart', {
|
||||
revenue: parseFloat((Math.random() * 100000).toFixed(2)),
|
||||
currency: 'USD',
|
||||
currency: 'SHIBA',
|
||||
});
|
||||
window['umami'].track('affiliate-link', {
|
||||
revenue: parseFloat((Math.random() * 100000).toFixed(2)),
|
||||
currency: 'USD',
|
||||
currency: 'ETH',
|
||||
});
|
||||
window['umami'].track('promotion-link', {
|
||||
revenue: parseFloat((Math.random() * 100000).toFixed(2)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue