AnalyticsHtml constructor
AnalyticsHtml(})
Implementation
AnalyticsHtml(
String trackingId,
String applicationName,
String applicationVersion, {
String? analyticsUrl,
Duration? batchingDelay,
}) : super(
trackingId,
HtmlPersistentProperties(applicationName),
HtmlPostHandler(),
applicationName: applicationName,
applicationVersion: applicationVersion,
analyticsUrl: analyticsUrl,
batchingDelay: batchingDelay,
) {
var screenWidth = window.screen!.width;
var screenHeight = window.screen!.height;
setSessionValue('sr', '${screenWidth}x$screenHeight');
setSessionValue('sd', '${window.screen!.pixelDepth}-bits');
setSessionValue('ul', window.navigator.language);
}