fix(analytics): Resolve Umami proxy 500 error and empty server events
This commit is contained in:
@@ -96,10 +96,8 @@ export default async function Layout(props: {
|
||||
});
|
||||
}
|
||||
|
||||
const { after } = await import('next/server');
|
||||
after(() => {
|
||||
serverServices.analytics.trackPageview();
|
||||
});
|
||||
// Server-side analytics tracking removed to prevent duplicate/empty events.
|
||||
// Client-side AnalyticsProvider handles all pageviews.
|
||||
} catch {
|
||||
if (process.env.NODE_ENV !== 'production' || !process.env.CI) {
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user