Skip to content

feat: e2eビルド時にanalyticsイベントの送信を無効化#356

Merged
ujiro99 merged 2 commits intomainfrom
copilot/disable-analytics-on-e2e-build
Apr 3, 2026
Merged

feat: e2eビルド時にanalyticsイベントの送信を無効化#356
ujiro99 merged 2 commits intomainfrom
copilot/disable-analytics-on-e2e-build

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

e2eビルド(--mode e2e)時にGA(Google Analytics)へイベントが送信されてしまう問題を修正。

変更点

  • analytics.tsDISABLE_ANALYTICS フラグに isE2E 条件を追加
// Before
const DISABLE_ANALYTICS = IS_CI

// After
const DISABLE_ANALYTICS = IS_CI || isE2E

isE2Eimport.meta.env.MODE === "e2e" で評価されるコンパイル時定数。yarn build:e2e(Vite --mode e2e)でビルドされた場合のみ true となる。

Copilot AI changed the title [WIP] Fix analytics event sending during e2e build feat: e2eビルド時にanalyticsイベントの送信を無効化 Apr 2, 2026
Copilot AI requested a review from ujiro99 April 2, 2026 22:54
@ujiro99 ujiro99 marked this pull request as ready for review April 3, 2026 03:15
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.66%. Comparing base (0cdb2f6) to head (08f82e1).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #356   +/-   ##
=======================================
  Coverage   25.66%   25.66%           
=======================================
  Files         309      309           
  Lines       31240    31240           
  Branches     1546     1547    +1     
=======================================
  Hits         8017     8017           
  Misses      23223    23223           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ujiro99 ujiro99 merged commit 7002c79 into main Apr 3, 2026
7 checks passed
@ujiro99 ujiro99 deleted the copilot/disable-analytics-on-e2e-build branch April 3, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2eビルドのときは、analyticsイベントを送信しない

2 participants