diff --git a/utils/analytics.ts b/utils/analytics.ts index 1ecc514..70f0bc9 100644 --- a/utils/analytics.ts +++ b/utils/analytics.ts @@ -83,6 +83,7 @@ export async function uploadToAppInsights( if (webAppReport.artifacts.webAppManifest?.json) { const _manifest = webAppReport.artifacts.webAppManifest?.json; console.log(_manifest); + analyticsInfo.properties.hasManifest = true; analyticsInfo.properties.name = (_manifest['name'] != undefined && (await validateSingleField('name', _manifest['name'])).valid) || @@ -189,6 +190,9 @@ export async function uploadToAppInsights( (await validateSingleField('icons', _manifest['icons'])).valid) || false; } + else { + analyticsInfo.properties.hasManifest = false; + } if (webAppReport.audits.serviceWorker) { analyticsInfo.properties.hasServiceWorker = webAppReport.audits.serviceWorker.score;