Skip to content

Commit

Permalink
snowplow mini for local
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Sep 12, 2024
1 parent a75a88e commit cde114d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit cde114d

Please sign in to comment.