Google Analytics 统计用户点击和每个页面浏览的用户id

 

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

            gtag('config', 'UA-805xxx-10', {
                'custom_map': {'dimension1': 'username'}
            });

            // Sends an event that passes 'age' as a parameter.
            gtag('event', 'age_dimension', {'username':  '用户id'});
        </script>

  

CCHRC operation

Add custom reports:

 

 

 

Access / Click Report

 

 

Like 

 

 

Comment

 

View:

Click the Arrow to view table.

Import: Select a date range

猜你喜欢

转载自www.cnblogs.com/fpcing/p/10833445.html