google 分析未显示数值

google analytics not showing numeric values

我正在尝试将事件(带有数值)发送到 google 分析,但 google 分析仪表板中未显示该数值:

<!-- Google Analytics -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'XX-XXXXX-X', 'auto');
  ga('send', 'pageview');

  ga('send', {
    hitType: 'event',
    eventCategory: 'test',
    eventAction: 'visit_on_page',
    eventLabel: 'label2',
    eventValue: Math.round(Math.random()*100)
  });

您可以在事件报告中找到事件值(而不是在实时报告中)。