WaspW
Wasp2y ago
Karan

Disable Plausible and enable Google Analytics

I keep seeing this on server side logs. Can you tell me how I can disable Plausible and enable Google Analytics? Right now I am changing the code imports in calculateDailyStats.js manually before my deploy (yet to test this out):

// import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js';
import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';


[ Server!] Error calculating daily stats:  Error: HTTP error! Status: 404
[ Server!]     at getTotalPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:46:11)
[ Server!]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ Server!]     at getDailyPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:28:22)
[ Server!]     at calculateDailyStats (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/calculateDailyStats.ts:43:55)
[ Server!]     at async resolveWithinSeconds (/Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/pg-boss/src/manager.js:34:14)
[ Server!]     at async /Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/p-map/index.js:57:22
Was this page helpful?