I've set Analytics for my new landing page. Everything works correctly( real-time data as well) except for Events tracking.
Actually, this is the first time I'm working with Analytics Events tracking, it looked so easy to set up at the beginning but now I'm lost.
I've searched for tons of information on the internet and followed many different instructions but I still can't get it to work.
This is how my set up looks like:
Inside my header:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=*mytrackingid*">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '*mytrackingid*');
</script>
onCall handler:
"gtag('event', 'Test1', {'event_category': 'Test2''});"
I've tried using "ga()" as well with no results.
I'm really stuck here.
PS: I have no filters on my Analytics view.