简体   繁体   English

无法为自定义维度/指标 GA4 创建报告

[英]Cannot create reports for custom dimensions/metrics GA4

I have implemented a feedback star rating on my website at the bottom of each page.我在每个页面底部的网站上实施了反馈星级评级。 They can select one to five stars and optionally send free-form comments.他们可以选择一到五颗星,并可选择发送自由格式的评论。 I have implemented gtag.js to send the star rating integer and comments to my GA4 dashboard.我已经实现了 gtag.js 来将星级整数和评论发送到我的 GA4 仪表板。 Code snippet is below;代码片段如下; I have omitted the JavaScript which allows the user to set the variables, but this is working.我省略了允许用户设置变量的 JavaScript,但这是有效的。

<script async src="https://www.googletagmanager.com/gtag/js?id=MEASUREMENT_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'MEASUREMENT_ID', {
    'custom_map': {
      'rating_dimension': 'rating_key',
      'comments_dimension': 'comments_key'
    },

    'rating_key': 'this.value',
    'comments_key': 'commentsValue',
  });
</script>
gtag('event', 'rating_event', {'rating_key': this.value });

gtag('event', 'comments_event', {'comments_key': commentValue });

I went under Configure>Custom definitions and added the dimensions under the Event scope.我进入了配置>自定义定义并在事件范围下添加了维度。

The data is being sent as an event, because this is something the user can optionally do on a page.数据作为事件发送,因为这是用户可以选择在页面上执行的操作。 I have verified that the data is sent to GA, I have the Google Chrome GA Debugger, and can see that it is arriving in the Realtime report under Events.我已验证数据已发送到 GA,我有 Google Chrome GA 调试器,并且可以看到它正在到达事件下的实时报告中。

I would like to build a report which shows the page title/URL, the number of views, the length of time spent, along with its average star rating and any comments.我想建立一个报告,显示页面标题/URL、查看次数、花费的时间长度,以及它的平均星级和任何评论。 I would like to have some adjustable controls so that I can configure this to be shown for a specified length of time.我想要一些可调节的控件,以便我可以将其配置为在指定的时间长度内显示。 For example, if the page is modified, I can see the average rating before and after the change.例如,如果页面被修改,我可以看到更改前后的平均评分。 Unfortunately, I am not able to build even the most rudimentary view of this data in the new GA web interface.不幸的是,我什至无法在新的 GA Web 界面中构建这些数据的最基本视图。 I tried to modify various existing reports to include my custom dimensions, but they don't offer this option.我尝试修改各种现有报告以包含我的自定义维度,但它们不提供此选项。 I went under Explore and tried to add a Freeform report, but I can't get the data to show up there either, it only counts the number of times the event has occurred, which is not what I care about at all.我进入探索并尝试添加自由格式报告,但我也无法让数据显示在那里,它只计算事件发生的次数,这根本不是我关心的。

I have gone to a lot of effort to send the data to GA and had expected to be able to access the data and build a basic report.我付出了很多努力将数据发送给 GA,并希望能够访问数据并构建基本报告。

Is it that you are unable to add custom dimensions and metrics to the free form exploration?是您无法在自由形式探索中添加自定义维度和指标吗? Or when you want to add dimensions or metrics, they don't even show up in the custom section?或者当您想要添加维度或指标时,它们甚至不会显示在自定义部分中?

Normally you have to wait more or less (some say up to) 24 hours before being able to use custom definitions (metrics and dimensions) in any report.通常,您必须或多或少(有人说最多)等待 24 小时,然后才能在任何报告中使用自定义定义(指标和维度)。

this might not be your case, but I found your post looking for an answer to my problem, which is the custom metrics and dimensions are there, I am just unable to add them to the report, it looks like a bug, I click the + button, check the custom dimensions and nothing happens.这可能不是你的情况,但我发现你的帖子正在寻找我的问题的答案,这是自定义指标和维度,我无法将它们添加到报告中,它看起来像一个错误,我点击+ 按钮,检查自定义尺寸,没有任何反应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM