Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

add currency attribute to revenue button

Francis Cao6ce9a8cef455
diff --git a/src/app/(main)/console/TestConsole.tsx b/src/app/(main)/console/TestConsole.tsx
index 544aaa9ae..6842b26de 100644
--- a/src/app/(main)/console/TestConsole.tsx
+++ b/src/app/(main)/console/TestConsole.tsx
@@ -170,7 +170,8 @@ export function TestConsole({ websiteId }: { websiteId: string }) {
<Button
id="generate-revenue-button"
data-umami-event="checkout-cart"
- data-umami-event-revenue={(Math.random() * 100).toFixed(2).toString()}
+ data-umami-event-revenue={(Math.random() * 10000).toFixed(2).toString()}
+ data-umami-event-currency="USD"
variant="primary"
>
Generate revenue data