feat: Add GA integration, support for GA4 (#4626)
* GA integration settings * trackingId -> measurementId Hook up script * Public page GA tracking Correct layout of settings * Remove multiple codepaths for loading GA measurementID, add missing db index * Remove unneccessary changes, tsc * test
This commit is contained in:
@@ -89,7 +89,7 @@ export function assertUrl(
|
||||
require_valid_protocol: true,
|
||||
})
|
||||
) {
|
||||
throw ValidationError(message ?? `${String(value)} is an invalid url!`);
|
||||
throw ValidationError(message ?? `${String(value)} is an invalid url`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,9 +105,7 @@ export function assertBoolean(
|
||||
message?: string
|
||||
): asserts value {
|
||||
if (typeof value !== "boolean") {
|
||||
throw ValidationError(
|
||||
message ?? `${String(value)} is a ${typeof value}, not a boolean!`
|
||||
);
|
||||
throw ValidationError(message ?? `${String(value)} is not a boolean`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user