Skip to content

Commit

Permalink
add metric tier only on non free
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Nov 24, 2024
1 parent 771cddd commit 4ef9a11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/src/js/app/embed/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ if (window._umami) {
const umami = (await import('../../lib/umami')).init(window, window._umami, {
referrer: data.referer,
});
umami.identify({
tier: window._tier,
});
if (window._tier !== 'free') {
umami.identify({
tier: window._tier,
});
}
}
const c = await check();
if (c) {
Expand Down

0 comments on commit 4ef9a11

Please sign in to comment.