Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Event tracking vs Custom Variables

What is the difference between the two? I have an Ajax heavy site and I'm not sure which one would be more appropriate to use for tracking requests.

like image 939
chobo Avatar asked Jul 23 '10 22:07

chobo


2 Answers

Event tracking is most suitable for tracking events in an application that don't necessarily cross page boundaries, such as actions implemented as Ajax calls.

Page level custom variables can be used to record user interactions, however the number of page level custom variables is limited to 5 per page. All custom variables must be defined before _trackPageview() has been called. I find session and visitor level custom variables more useful for recording extra information about a visitor such as demographics or anonymous vs logged in visits, which you can use to segment visitors.

like image 115
donalmacanri Avatar answered Sep 23 '22 01:09

donalmacanri


Event Tracking would probably be better suited to AJAX interactions. Custom variables get set, then posted after ._trackPageview() is called. Event tracking can be used after you page has loaded and called ._trackPageview(), and then your user performs actions that may not result in a new page view, like AJAX calls.

like image 39
Jonathan Bates Avatar answered Sep 21 '22 01:09

Jonathan Bates