I'm trying to track custom events and pageviews in Google Analytics. When including the GA tracking code (Universal Analytics) directly into my pages, events fire normally. However when including the code using Google Tag Manager, nothing is fired except for the initial pageview.
This is the code for firing custom events:
ga('send', 'event', 'test', 'test');
I tested using the console and in both cases ga
is defined, and the above code doesn't throw any errors.
I also tried to find some configuration option in GTM that's blocking my events, but couldn't find anything useful.
Any ideas what's preventing the custom events from being fired?