Google Analytics events not showing any reports
<p>I have added the google analytics tracking code, it looks like this:</p>

<pre><code>    &lt;script&gt;
  (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');

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

&lt;/script&gt;
</code></pre>

<p>Now, I want to implement some events GA. I got this code, found on google:</p>

<pre><code>ga('send', 'event', 'User Manual Download', 'PDF Download', 'Name');
</code></pre>

<p>and I have added it to the function that invokes on button click (button for downloading)</p>

<p>this is the function:</p>

<pre><code>function download()
            {
                ga('send', 'event', 'User Manual Download', 'PDF Download', 'Name');

                document.getElementById("download-manual").style.boxShadow = " 0px 0px 30px #FFFFFF";
                setTimeout(function()
                {
                    document.getElementById("download-manual").style.boxShadow = " 0px 0px 0px #FFFFFF";
                }
                , 200);
            }
</code></pre>

<p>The function is called everytime, there is no bugs, but event is not loaded to google analytics. In reports, I don't see any type of events at all. I have been waiting for about 12 hours for them to show up, but they don't show, and also in real time report, they don't appear. I am sure that download() function starts, bacause the button "flashes" (because of the box shadow). Where did I go wrong?</p>