Submit Button Event Tracking in Google Analytics -


I can not get event tracking to work on a submit button press on the site.

The relevant code is

type button class = "BTN-valid valid contact-BTN" "submit" onclick = "_gaq.push (['_ trackEvent' 'Clutchquality', 'submit']); "> This syntax is correct?

Are you using the right analytics object (i.e. _gaq GA)? It will depend on whether you are using Universal Analytics (Analytics .js) or Classic Google Analytics (ga.js) in your snippet. But I have seen conditions where the user has _gaq and gaob Jects have been mixed syntax-wise, this looks correct.

More info on event push syntax can be found here.

Hope this will be helpful.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -