Google Analytics Events Throws undefined

Hey Everyone,

I want to add an event on the website (Using Google Analytics).
But it keeps throwing an undefined message.


However, It is doing a call to Google Analytics.

But on Google Analytics you can’t see the event.
I am using a Global site tag (gtag.js)

Hi @dseegersmail, that’s not actually throwing anything – the output just means that the gtag() function doesn’t return anything. It looks like you’re missing the event action though… other than that, you might have a look at the debugging version for troubleshooting (there’s also a chrome extension for this).


1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.