Skip to content
Advertisement

GA send event, returns undefined

Innit GA

JavaScript

Track event

JavaScript

But this allways return undefined, And I added the ‘Registration’ event (with that category, label and value) in conversions, at google analytics site,

Any idea why this could happen?

Of course it isn’t tracked..

enter image description here

Advertisement

Answer

You are mixing old-style classic syntax (using the _gaq array) and Universal Analytics, so your ga object is not set up correctly (the tracker id from _gaq will not be used in the ga object and hence no tracker is created).

Your code should look something like this:

JavaScript
Advertisement