sGTM Preview/Debug Not Working Reliably on Android While iOS Works with Identical Configuration

オープン
#8,490 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
android, dart, firebase, flutter, java

調査の方向性

まず、レポートに示されている AndroidManifest.xml、build.gradle、ネットワークセキュリティ設定と併せて firebase_analytics_2.log を確認します。Android Firebase Analytics 23.2.0 と sGTM preview のセットアップを、動作している iOS 設定と比較し、204 レスポンスで報告されている EOFException に焦点を当てます。イベントが不安定にしか可視化されない状況を再現し、それがリグレッションなのか設定の問題なのかを明らかにできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

api: analytics needs-attention
Describe your environment
Flutter firebase_analytics (Dart) | 12.4.1
Flutter firebase_core (Dart) | 4.9.0
Android firebase-analytics (resolved) | 23.2.0
Android play-services-measurement (resolved) | 23.2.0
Android play-services-tagmanager | 18.3.0 (latest)
Firebase BOM (declared) | 33.12.0
Google Services Plugin | 4.4.2
Android compileSdk / targetSdk / minSdk | 36 / 36 / 26
Google Play Services Dynamite Module | measurementdynamite@[email protected]
Test Device | Samsung SM-S908E, Android 14

AndroidManifest.xml:
<meta-data
    android:name="google_analytics_default_allow_analytics_storage"
    android:value="true" />

<meta-data
    android:name="google_analytics_default_allow_ad_storage"
    android:value="false" />

<meta-data
    android:name="google_analytics_default_allow_ad_user_data"
    android:value="false" />

<meta-data
    android:name="google_analytics_default_allow_ad_personalization_signals"
    android:value="false" />

<meta-data
    android:name="google_analytics_sgtm_upload_enabled"
    android:value="true" />

<activity
    android:name="com.google.firebase.analytics.GoogleAnalyticsServerPreviewActivity"
    android:exported="true"
    android:noHistory="true">

    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="tagmanager.sgtm.c.PACKAGE_NAME" />
    </intent-filter>

</activity>

### build.gradle

implementation platform('com.google.firebase:firebase-bom:33.12.0')
implementation 'com.google.android.gms:play-services-tagmanager:18.3.0'

### We have already attempted the following:

  • Uninstalled and reinstalled the application multiple times.
  • Cleared Google Play Services data.
  • Disabled Private DNS on the device.
  • Tested on multiple Android devices with the same outcome.
  • Confirmed that play-services-tagmanager:18.3.0 is the latest available version.
  • Confirmed that firebase-analytics:23.2.0 is the version resolved by Gradle.
  • Added Firebase BOM 33.12.0; no change in behavior.
  • Verified that the GA4 data stream is configured with the correct sGTM endpoint.
  • Verified that iOS works correctly using the same Firebase, GA4, and sGTM configuration.
Describe the problem

We are unable to reliably see events in the sGTM Preview Mode for Android.

Observed behavior:

Preview mode connects successfully.
Occasionally, standard events such as click and screen_view appear intermittently.
Custom events do not appear consistently or are completely missing.
Event visibility is unreliable and inconsistent across test sessions.
The identical setup on iOS works perfectly, where all events appear in the sGTM Preview debugger in real time.

Both platforms are configured with:

Same Firebase project
Same GA4 property
Same sGTM server URL configured in the GA4 data stream
Same event implementation logic

We have attached the logs collected during testing for reference.

Given the impact on validation and debugging, we would appreciate the opportunity to schedule a call with your team to discuss and troubleshoot the issue.

Are there any known issues with Android Firebase Analytics 23.2.0 and sGTM Preview Mode?

Is the EOFException on 204 No Content responses a confirmed regression in the dynamite module versions listed above, and when is a fix expected?

Steps to reproduce:

Log attached.

firebase_analytics_2.log

Relevant Code:

### Network_security_config file

<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">192.168.1.254</domain>
</domain-config>
</network-security-config>
主要言語
Java
スター
2.6k
フォーク
733
平均マージ
2日 15時間
マージ済み PR(30日)
72

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/firebase-android-sdk のほかの issue

firebase/firebase-android-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。