trackScreenView method
Tracks a screen view for per-link screen-flow funnels.
Emits a screen_view event stamped with the active last-click attribution
context, so the dashboard can show which screens users reach after opening a
deep link. For automatic tracking, add LinkFortyNavigatorObserver to your
app's navigatorObservers.
Throws NotInitializedError if the SDK is not initialized.
Implementation
Future<void> trackScreenView(
String name, [
Map<String, dynamic>? properties,
]) async {
if (!_isInitialized) {
throw const NotInitializedError();
}
await _eventTracker?.trackScreenView(name, properties);
}