feat: collect consented analysis usage statistics
Publish GitHub Pages output / publish (push) Successful in 43s
Publish GitHub Pages output / publish (push) Successful in 43s
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user