segmentio/analytics_flutter

Can't get web events to flow into Segment

Closed this issue · 2 comments

Is there any additional configuration required for web to work? I am not seeing any lifecycle, identify, track, or screen calls making it into Segment. I am using the debugger for my source and nothing shows up when it used to show up instantly. I am manually calling identify and track and I have added the ScreenObserver() to observe my routes and automatically send screen() events. This all works for my iOS and Android sources, but not my web source. I've tested this locally and after deploying to my host with the URL configured in Segment with the same results.

I've installed the package by adding it to pubspec and I've imported the library in my class and I'm calling createClient as so with my web source write key.

segment = createClient( Configuration( writeKey, collectDeviceId: true, trackApplicationLifecycleEvents: true, trackDeeplinks: true, debug: true, ), );

I was able to get events to flow into Segment! I tested the example app in this repo and it set events immediately. I eventually removed trackDeeplinks from my createClient and that got it to work.

There should probably be documentation explaining this doesn't work or a bug created if it's not intended.

Hi @QoLTech thank you for your report, we start looking into this.