SEO blogpost
This commit is contained in:
@@ -326,6 +326,11 @@ export default function ScannerScreen() {
|
||||
credits_available: availableCredits,
|
||||
});
|
||||
|
||||
// Für aggregierte Auswertungen: welche Art bzw. welcher Befund kam heraus.
|
||||
// Nur Art-/Befundnamen, keine Bilddaten.
|
||||
let scannedSpecies: string | null = null;
|
||||
let healthStatus: string | null = null;
|
||||
|
||||
if (isHealthMode) {
|
||||
if (!healthPlant) {
|
||||
Alert.alert(billingCopy.genericErrorTitle, billingCopy.genericErrorMessage);
|
||||
@@ -352,6 +357,9 @@ export default function ScannerScreen() {
|
||||
latency_ms: Date.now() - startTime,
|
||||
});
|
||||
|
||||
scannedSpecies = healthPlant.botanicalName || healthPlant.name || null;
|
||||
healthStatus = response.healthCheck?.status || null;
|
||||
|
||||
const currentGallery = healthPlant.gallery || [];
|
||||
const existingChecks = healthPlant.healthChecks || [];
|
||||
const updatedChecks = [response.healthCheck, ...existingChecks].slice(0, 6);
|
||||
@@ -372,6 +380,8 @@ export default function ScannerScreen() {
|
||||
latency_ms: Date.now() - startTime,
|
||||
});
|
||||
|
||||
scannedSpecies = result.botanicalName || result.name || null;
|
||||
|
||||
setAnalysisResult(result);
|
||||
}
|
||||
setAnalysisProgress(100);
|
||||
@@ -379,6 +389,8 @@ export default function ScannerScreen() {
|
||||
posthog.capture('paid_scan_completed', {
|
||||
scan_type: isHealthMode ? 'health_check' : 'identification',
|
||||
latency_ms: Date.now() - startTime,
|
||||
species: scannedSpecies,
|
||||
health_status: healthStatus,
|
||||
});
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
setIsAnalyzing(false);
|
||||
|
||||
Reference in New Issue
Block a user