void
initMatomo(- dynamic context,
- bool screenshotMode
)
Implementation
static void initMatomo(
final BuildContext context,
final bool screenshotMode,
) {
if (screenshotMode) {
setCrashReports(false);
setAnalyticsReports(false);
return;
}
MatomoForever.init(
'https://analytics.openfoodfacts.org/matomo.php',
2,
id: _getId(),
// If we track or not, should be decidable later
rec: true,
method: MatomoForeverMethod.post,
sendImage: false,
// 32 character authorization key used to authenticate the API request
// only needed for request which are more then 24h old
// tokenAuth: 'xxx',
);
}