From cde114d4e9aba5ef90e451819e2e7c4985e25ab2 Mon Sep 17 00:00:00 2001 From: dbarkowsky Date: Thu, 12 Sep 2024 10:09:33 -0700 Subject: [PATCH] snowplow mini for local --- react-app/src/App.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react-app/src/App.tsx b/react-app/src/App.tsx index d4ee08f78..e3d0981a5 100644 --- a/react-app/src/App.tsx +++ b/react-app/src/App.tsx @@ -269,7 +269,11 @@ const Router = () => { const App = () => { /** START SNOWPLOW SETUP */ - newTracker('rt', 'spt.apps.gov.bc.ca', { + // Snowplow Mini for temporary testing, Snowplow Tracker for long-term records + const connectorEndpoint = window.location.href.includes('localhost') + ? 'spm.apps.gov.bc.ca' + : 'spt.apps.gov.bc.ca'; + newTracker('rt', connectorEndpoint, { appId: 'Snowplow_standalone_PIMS', cookieLifetime: 60 * 60 * 24, // Time in seconds. platform: 'web',