我使用Google Analytics Measurement Protocol向HTTP请求注册事件。我正在为我正在开发的Roku应用构建这个。这些事件已经发送并注册,但custom dimensions似乎无法正常工作。
这是我发送的内容
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
当我在Google Analytics中转到Behavior > Events > Top Events
并将辅助维度设置为例如,没有任何事件显示。当我脱掉次要维度时会出现这些事件,因此Google Analytics似乎并不喜欢自定义定义。
当我将上述内容提交给https://ssl.google-analytics.com/debug/collect时(如果请求有问题则返回错误的验证服务器),它表示请求有效。
知道这里会发生什么吗? 谢谢你的帮助!