Commit Graph

10 Commits

Author SHA1 Message Date
cc0fc11407 fix: add reconnection logic and guard in Metriki emit methods
- Wrap ws.send in try-catch to handle connection failures gracefully
- Set isConnected to false and schedule retry via emitVisit after 500ms on error
- Add early return guard in emitVisit to skip emission when not rendered or connected
2025-01-02 19:30:00 +00:00
d5359176f6 chore: replace hardcoded WebSocket URL with wss://metriki.molodetz.nl/event endpoint in Metriki class constructor 2025-01-02 19:20:57 +00:00
a85719a8aa feat: add initial index.html template with Metriki title and static JS include 2025-01-02 19:14:43 +00:00
66671fe1b3 chore: remove console.info and console.log debug statements from Metriki class 2025-01-02 19:00:46 +00:00
786e757458 feat: add click event detection and storage to EventView handler
Introduce a new `click_fields` list alongside existing document fields, implement `is_click_record` method to identify click events by checking for 'click' event type, and extend `get_record` to extract click-specific fields. In the `post` method, route click records to a new 'click' collection with associated visit_id, enabling separate storage and analysis of click interactions distinct from document and general event records.
2025-01-02 18:59:59 +00:00
a0077ee13f feat: replace session_id with ip for session lookup and add scroll/mouse event fields to JS tracker 2025-01-02 18:54:24 +00:00
ad124188de fix: correct console_scripts entry point names and replace placeholder bot logic with aiohttp web server 2025-01-02 18:28:33 +00:00
865bdc9a05 chore: remove booehbot matrix client and add aiohttp web app scaffold with session views 2025-01-02 17:43:04 +00:00
3c176c7e14 chore: rename project from boeh to metriki and update entry points and dependencies 2025-01-02 16:21:56 +00:00
05cba47325 feat: scaffold boeh matrix bot with async client, env secrets, and makefile build pipeline 2025-01-02 16:17:17 +00:00