javascript - Google Analytics - how to track clicks on a screen? -


can track click of every link, button, dropdown select, etc. on screen , have tracked in google analytics?

i want create page , collect data on widget users use most.

what ajax stuff? if you're using jquery or mootools...can functions register fake url ga based on user interaction? use flash. everytime click button, can initiate fake url request. make urls such ".../customize/eyes/" or ".../customize/nose", etc. wondering if can javascript on page.

i've posted @ webmaster stackexchange.

yes, can this, it's not recommended practice, , google might throttle usage if there many clicks.

rather overloading pageviews, should use events.

you bind event call every click, (assuming jquery)

$(document).delegate('*', 'click submit', function(){ _gaq.push(['_trackevent', 'category', 'action', 'label', numeric_value]); }); 

you insert whatever custom event-driven javascript info parameters.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -