Google analytics 在localhost中搜索谷歌分析网站

Google analytics 在localhost中搜索谷歌分析网站,google-analytics,Google Analytics,我的google analytics网站搜索不起作用。如何在本地设置,以便在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(argument

我的google analytics网站搜索不起作用。如何在本地设置,以便在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');
        var _gaq = _gaq || [];


ga('create', 'UA-169....', 'auto');// add your tracking ID here.
ga('send', 'pageview');
  </script>

(功能(i、s、o、g、r、a、m){
i['GoogleAnalyticsObject']=r;
i[r]=i[r]| |函数(){
(i[r].q=i[r].q | |[]).push(参数)
},i[r].l=1*新日期();
a=s.createElement(o),
m=s.getElementsByTagName(o)[0];
a、 异步=1;
a、 src=g;
m、 parentNode.insertBefore(a,m)
})(窗口,文档,'脚本','https://www.google-analytics.com/analytics.js","ga",;
var _gaq=_gaq | |[];
ga(‘创建’、‘UA-169……’、‘自动’);//在此处添加您的跟踪ID。
ga(‘发送’、‘页面浏览’);
我只添加了这几行,每当我访问我的webiste时:“它会在google analytics演示帐户中显示1个视图。但不用于网站搜索。是因为我没有域名吗?”

我的项目在angular9上