feat: collect consented analysis usage statistics
Publish GitHub Pages output / publish (push) Successful in 43s

This commit is contained in:
2026-09-06 20:56:08 +09:00
parent 9d2d8963b5
commit b97a4008bb
8 changed files with 169 additions and 5 deletions
+10
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { analytics } from '$lib/analytics.ts';
import AnalysisHistory from '$lib/components/AnalysisHistory.svelte';
import type { AnalysisCapture, AnalysisSettings, GrowthSnapshot } from '$lib/models/analysis-history.ts';
import { page } from '$app/stores';
@@ -706,6 +707,15 @@
});
const noteScore = perfectNoteScore;
const songBonus = boardEffects.directSongScoreBonusPercent;
const analysisSettings = pendingCapture.settings;
analytics.trackAnalysisStart({
songId: analysisSettings.songId,
difficulty: analysisSettings.difficulty,
cards: analysisSettings.cardIds.map((cardId, index) => ({
cardId,
awakening: analysisSettings.awakenings[index]
}))
});
const chart = await loadExactSongChart(selectedChart.path);
progress = { evaluatedCandidates: 0, totalCandidates: countOptimizationCandidates(cards) };
worker.postMessage({