Google AnalyticsUnion插件 - 没有数据显示

时间:2015-11-06 20:03:55

标签: c# android unity3d google-analytics

我正在尝试使用Google Analytics for Unity插件(link)来跟踪用户统计信息。我相信我已经正确设置了所有内容,但在仪表板或实时视​​图中没有看到任何内容。 我已经在48小时前(上周末)设置了Google Analytics帐户和媒体资源,并将其纳入我的团结项目中:

Screenshot of my prefab configuration in unity

我的团结代码(当玩家死亡时调用):

        Debug.Log("Should send data to google analytics now");
            googleAnalytics.LogEvent("game", "death", "something", 0);
            googleAnalytics.LogEvent(new EventHitBuilder()
                            .SetEventCategory("game")
                            .SetEventAction("death")
                            .SetCustomMetric(1, "" + (int) (score * 1000))
                            .SetCustomMetric(2, "" + gameNumber));

来自我的Android设备的日志:

11-06 20:37:37.291  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : Killing player (UnityEngine.GameObject)
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : I was killed
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : Should send data to google analytics now
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : Logging event.
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.308  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.308  5071  5102 I Unity   :
11-06 20:37:37.309  5071  5102 I Unity   : Logging event.
11-06 20:37:37.309  5071  5102 I Unity   :
11-06 20:37:37.309  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.309  5071  5102 I Unity   :
11-06 20:37:37.310  5071  5141 V GAV3    : Thread[GAThread,5,main]: putHit called
11-06 20:37:37.310  5071  5141 V GAV3    : Thread[GAThread,5,main]: Sending hit to service   PATH: https:  PARAMS: sr=10
80x1776,  ht=1446838657309,  sf=100,  _u=.r33yAAAAAL,  ec=game,  did=GbOCSs,  cid=229fc034-20c1-49ff-96c7-218660d739de,
 ev=0,  av=1.0,  v=1,  an=Stay High,  ul=en-us,  t=event,  tid=UA-xxxxxxx-5 ,  ea=death,  aid=com.yey.stayhigh,  el=some
thing,
11-06 20:37:37.310  5071  5102 I Unity   : Added custom variables to hit.
11-06 20:37:37.310  5071  5102 I Unity   :
11-06 20:37:37.310  5071  5102 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.
cpp Line: 64)
11-06 20:37:37.310  5071  5102 I Unity   :
11-06 20:37:37.312  5071  5102 V GAV3    : Thread[UnityMain,5,main]: Dispatch call queued. Dispatch will run once initia
lization is complete.
11-06 20:37:37.346  5071  5141 V GAV3    : Thread[GAThread,5,main]: putHit called
11-06 20:37:37.346  5071  5141 V GAV3    : Thread[GAThread,5,main]: Sending hit to service   PATH: https:  PARAMS: sr=10
80x1776,  ht=1446838657312,  sf=100,  _u=.r3yAAAAABL,  ec=game,  did=GbOCSs,  cid=229fc034-20c1-49ff-96c7-218660d739de,
 ev=0,  cm2=80,  av=1.0,  v=1,  an=Stay High,  ul=en-us,  t=event,  tid=UA-xxxxxxx-5 ,  ea=death,  aid=com.yey.stayhigh,
  cm1=6102,  el=,

我将我的Google Analytics项目设置为移动项目。 我真的不明白为什么这些点击不会出现在我的仪表板上,因为它们似乎正在发送。有没有人对此有可能的解释?我可能忘了别的什么吗?

0 个答案:

没有答案