具有多个维度的Google Analytics(分析)gtag

时间:2018-07-10 20:45:00

标签: google-analytics google-analytics-api google-tag-manager gtag.js custom-dimensions

想知道使用多个自定义维度来使用'gtag'代码的正确语法是什么。这是我所拥有的,我只能看到Dimensions1正常工作。

     gtag('config', 'UA-xxxxx', {
            'custom_map': {'dimension1': 'year', 'dimension2': 'id', 'dimension3': 'presentation_title'}
          });

     // Sends the custom dimension to Google Analytics.
     gtag('event', 'Video', {
          'event_category': 'Play',
          'event_label': 'url', 
          'year': 'year',
          'id': 'video-id',
          'presentation_title': 'blah blah'
     });

如何使Dimension1 -3工作并显示在我的Google Analyticis中?谢谢!

0 个答案:

没有答案