title: Send Google Analytics Event on Page Load
body: <p>In our website, we need to send an event with an event value on some pages when the page is loaded. </p>
  
  <p>When we've added the following code to the bottom of our page (after the google analytics script) we don't receive any event record on Google analytics reports.</p>
  
  <pre><code>&lt;script&gt;
      ga('send', 'event', 'Showed a page', 'Showed a page', 'Page Type', 12);
  &lt;/script&gt;
  </code></pre>
  
  <p>where the 12 is an example event value.</p>
  
  <p>We get the events triggered when they're connected to onClick event of something but couldn't find the optimised way of doing it on page load.</p>