tinybirdco / web-analytics-starter-kit

Tinybird Web Analytics Starter Kit
https://tinybird.co/starter-kits/web-analytics
MIT License
350 stars 36 forks source link

[Bug] Detect multiple sources correctly #101

Open alexfernandez opened 3 weeks ago

alexfernandez commented 3 weeks ago

Module

Tinybird Data Project

Describe the Bug

Expected Behavior

When multiple events arrive together they should be processed using the current domain from each one.

To Reproduce

Send multiple events with different href and referrer. The current domain from the first event is used for all of them.

Details

This behavior is particularly problematic with the Tinybird gatherer, as it coalesces multiple events and sends them together. It also leads to memory issues in certain setups with billions of events.