trackPageView method

void trackPageView(
  1. SAPageInfo pageInfo
)

Implementation

void trackPageView(SAPageInfo pageInfo) {
  if (!SAAutoTrackManager.instance.pageViewEnabled) {
    return;
  }
  Map<String, dynamic> properties = _getPropertiesFromPageInfo(pageInfo);
  properties.addAll(pageInfo.properties ?? {});
  properties[r'$lib_method'] = 'autoTrack';
  SensorsAnalyticsFlutterPlugin.track(kIsWeb ? r'$pageview' : r'$AppViewScreen', properties);
}