Google Analytics doesn't track navigation between pages (SPA Google Analytics Integration)
I have run out of the Plausible trial, I want to put GAnalytics.
Inside: https://docs.opensaas.sh/guides/analytics/
I have done this step:
and I have in:
I actually pushed the secrets to fly
I think I've done everything right but when I fly deploy, it tells me:
What could be wrong? I thing is related with the base 64 enconded private api key but help me @kapa.ai ma boi
Inside: https://docs.opensaas.sh/guides/analytics/
I have done this step:
import { getDailyPageViews, getSources } from './providers/googleAnalyticsUtils';and I have in:
.env.server:GOOGLE_ANALYTICS_CLIENT_EMAIL.
GOOGLE_ANALYTICS_PROPERTY_ID
GOOGLE_ANALYTICS_PRIVATE_KEY.env.client: REACT_APP_GOOGLE_ANALYTICS_IDI actually pushed the secrets to fly
I think I've done everything right but when I fly deploy, it tells me:
๐ --- Building SDK... ------------------------------------------------------------
[ Wasp ] ext-src/analytics/stats.ts(6,81): error TS1002: Unterminated string literal.
โ --- [Error] Your wasp project failed to compile: -------------------------------
- SDK build failed with exit code: 2
โ --- [Error] Building of wasp project failed: -----------------------------------
1 errors found.
file:///home/rootall/.local/share/wasp-lang/0.14.2/data/packages/deploy/node_modules/zx/build/core.js:146
let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
'\x1B[34m[\x1B[0m \x1B[34mDb\x1B[0m \x1B[34m]\x1B[0m You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client\n' +
'\x1B[34m[\x1B[0m \x1B[34mDb\x1B[0m \x1B[34m]\x1B[0m ```\n' +
"\x1B[34m[\x1B[0m \x1B[34mDb\x1B[0m \x1B[34m]\x1B[0m import { PrismaClient } from '@prisma/client'\n" +
'\x1B[34m[\x1B[0m \x1B[34mDb\x1B[0m \x1B[34m]\x1B[0m const prisma = new PrismaClient()\n' +
'\x1B[34m[\x1B[0m \x1B[34mDb\x1B[0m \x1B[34m]\x1B[0m ```\x1B[33m\n' +
'โ
--- Database successfully set up. ----------------------------------------------\n' +
'\x1B[0m\n' +
'\x1B[33m\n' +
'๐ --- Building SDK... ------------------------------------------------------------\n' +
'\x1B[0m\n' +
'\n' +
'\x1B[33m[\x1B[0m \x1B[33mWasp\x1B[0m \x1B[33m]\x1B[0m ext-src/analytics/stats.ts(6,81): error TS1002: Unterminated string literal.\x1B[31m\n' +
'\n' +
'โ --- [Error] Your wasp project failed to compile: -------------------------------\n' +
'\n' +
'- SDK build failed with exit code: 2\x1B[0m\n' +
'\x1B[31m\n' +
'\n' +
'โ --- [Error] Building of wasp project failed: -----------------------------------\n' +
'\n' +
'1 errors found.\x1B[0m\n',
_stderr: '\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead\n' +
'\x1B[35m[\x1B[0m \x1B[35mServer\x1B[0m\x1B[1m\x1B[31m!\x1B[0m\x1B[35m]\x1B[0m npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.',
_combined: '\x1B[33m\n' +What could be wrong? I thing is related with the base 64 enconded private api key but help me @kapa.ai ma boi
OpenSaaS.sh
Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.