From 3d71165948277459a5faea15a454abe6559244bc Mon Sep 17 00:00:00 2001 From: David Ly Date: Tue, 25 Jun 2024 15:36:25 +0200 Subject: [PATCH] Added inspection completed to sightselected posthog tag --- .../inspection-capture-web/src/PhotoCapture/PhotoCapture.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/inspection-capture-web/src/PhotoCapture/PhotoCapture.tsx b/packages/inspection-capture-web/src/PhotoCapture/PhotoCapture.tsx index 0bdb0c91f..2c96b58a3 100644 --- a/packages/inspection-capture-web/src/PhotoCapture/PhotoCapture.tsx +++ b/packages/inspection-capture-web/src/PhotoCapture/PhotoCapture.tsx @@ -216,7 +216,10 @@ export function PhotoCapture({ startTasks() .then(() => { analytics.trackEvent('Capture Completed'); - analytics.setUserProperties({ captureCompleted: true }); + analytics.setUserProperties({ + captureCompleted: true, + sightSelected: 'inspection-completed', + }); onComplete?.(); }) .catch((err) => {