From 4ef9a11839b5be88d0516f35c4c0033b73d6b43c Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Sun, 24 Nov 2024 18:49:32 +0300 Subject: [PATCH] add metric tier only on non free --- assets/src/js/app/embed/check.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/src/js/app/embed/check.js b/assets/src/js/app/embed/check.js index 9d4efda..9617223 100644 --- a/assets/src/js/app/embed/check.js +++ b/assets/src/js/app/embed/check.js @@ -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) {