From 77636945fb336b7990ec4dca1e1c3aae1180535d Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 25 Jan 2024 11:40:09 +0800 Subject: [PATCH] fix: utm (#2191) --- web/context/provider-context.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/context/provider-context.tsx b/web/context/provider-context.tsx index ae8b8dbbf1..4cd22ddfa6 100644 --- a/web/context/provider-context.tsx +++ b/web/context/provider-context.tsx @@ -113,7 +113,8 @@ export const ProviderContextProvider = ({ utm_term: '', } } - operationUtm({ url: '/operation/utm', body: utm }) + if (utm.utm_source || utm.utm_medium || utm.utm_campaign || utm.utm_content || utm.utm_term) + operationUtm({ url: '/operation/utm', body: utm }) } useEffect(() => { (async () => {