Jethro85 commited on
Commit
8833078
·
1 Parent(s): ab6eaff

log to supabase

Browse files
Files changed (1) hide show
  1. app/templates/base.html +4 -2
app/templates/base.html CHANGED
@@ -92,8 +92,10 @@
92
  headers: { 'Content-Type': 'application/json' },
93
  body: JSON.stringify({
94
  eventType,
95
- visitor_id: window.__visitor_id,
96
- session_id: window.__session_id,
 
 
97
  ...props,
98
  })
99
  });
 
92
  headers: { 'Content-Type': 'application/json' },
93
  body: JSON.stringify({
94
  eventType,
95
+ vid: window.__visitor_id,
96
+ sessionId: window.__session_id,
97
+ page: location.pathname,
98
+ origin: location.origin,
99
  ...props,
100
  })
101
  });