I'm trying to setup event tracking for google analytics, and I've got the following code:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config','UA-XXXXXXXX-1');
</script>
onclick="javascript:gtag('event','Download',{'event_category':'Teacher Guide - Agroforestry','event_label':'Teacher Resource','value':'Teacher Resource'});"
It's displaying under Real-Time > Events if I click on the link, but it doesn't display under Behaviour -> Events -> Overview.
Could someone tell me if I'm missing something, or if I've set it up incorrectly?