Why doesn't Google Analytics show data but show property hits?

I recently installed Google Analytics on my website hosted by the VPS that I manage. This is a simple HTML web page, not a CMS like Wordpress (not sure if this is important?) I copied and pasted the following right above the tag </head>.

<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','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-########-#', 'auto');
  ga('send', 'pageview');

</script>

When I enter Google Analytics, I see the values ​​in the Hit Hit volume:

enter image description here

Despite these hits, there is no data in the audience review or anywhere else in the portal. I created default settings with property settings, so no filters are set.

enter image description here

Did I lose anything in my script or settings that I had to enable?

Thank!

+4
source share
3 answers

, . . , , .

, , - -, Google Analytics. , .

+2

:

- , , s.th.

  • UA - ######## - #
  • JavaScript.
  • adBlockers
  • ( )
  • ( , )
  • ( )
  • ( )
  • , URL

, :

<html>

<head>
  <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', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', 'UA-########-#', 'auto');
    console.log('-- ga send before --');
    ga('send', 'pageview');
    console.log('-- ga send --');
  </script>
</head>

<body>
  <h1>analytics test</h1>
  <p>check console output</p>
</body>
Hide result
+1

, , , , . - , www (, ). , -, www, , , .

In our case, the Google Tag Assistant was good, we could see hits in the admin console, but there was simply no data in the views. As soon as we removed the filter, hits immediately began to be reflected in our views.

To go to the filters,

  • Log in to your Analytics account.
  • Click on the Admin menu item
  • Click the "All Filters" submenu.
  • Check the filter list for the property, especially those that are of type Exclude, and remove anything that might stop traffic in your views.
0
source

All Articles