title: Google Analytics only show real-time data and not historic data
body: <p>I have a webform site where I added the Google Analytics script, but the Google Analytics Home just shows real-time data and not historic data like Page Views, Session by Device, Session by country, etc.</p>
  
  <p><a href="https://i.stack.imgur.com/OoSEc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OoSEc.jpg" alt="Google Analytics Home"></a>
  The script looks like this (it was inserted after ):</p>
  
  <pre><code>&lt;script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1"&gt;&lt;/script&gt;
  &lt;script&gt;
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
  
    gtag('config', 'UA-XXXXXXXXX-1');
  &lt;/script&gt;
  </code></pre>