2

我正在使用Google Analytics Measurement Protocol向 HTTP 请求注册事件。我正在为我正在开发的 Roku 应用程序构建它。事件正在发送和注册,但自定义维度似乎不起作用。

这是我要发送的内容

Destination URL:
    https://ssl.google-analytics.com/collect

POST body:
    v=1                             // version
    &dh=www.my-site.com             // document hostname
    &tid=UA-XXXXXXXX-X              // Tracking ID / Property ID
    &uid=(a user id)                // user id
    &cid=(an assigned UUID)         // Anonymous Client ID
    &sr=1280x720                    // screen resolution of the tv

    &t=event                        // Event hit type
    &ec=ExampleCategory             // Event Category. Required
    &ea=ExampleAction               // Event Action. Required
    &el=ExampleLabel                // Event label

    &cd1=WAAA                       // Custom dimension 1, Station
    &cd2=(some id)                  // Custom dimension 2, User ID

    &z=1432199801                   // Cache buster

例如,当我进入Behavior > Events > Top EventsGoogle Analytics 并将二级维度设置为 Station 时,没有任何事件出现。不过,当我取消二级维度时,这些事件就会显示出来,因此 Google Analytics 似乎只是不喜欢自定义定义。

  • 我试过等待 24 小时,看看是否有时间延迟问题,但这没有帮助。
  • 我还确保打开自定义定义,并将它们从 Analytics 的管理面板中设置为“命中”范围类型。

当我将上述内容提交到https://ssl.google-analytics.com/debug/collect(如果请求有问题时返回错误的验证服务器),它表示请求是有效的。

知道这里会发生什么吗?谢谢您的帮助!

4

0 回答 0