-
-
Notifications
You must be signed in to change notification settings - Fork 456
Action Tracking
Action Tracking provides a way to track actions that users perform on your web site. An action could anything ranging from the completion of a web form to clicking on a particular link or UI control.
Action tracking can be triggered from OWA's javascript tracker or from your php instance of OWA. Actions are reported separately from pages views and have their own metrics & dimensions.
Actions have a few properties that you can associated with them during tracking.
Actions can be given any name you want. Each unique action name will result in a unique type of action. For example let's pretend that we have a an action called "Recipe Print" which would be triggered whenever a users clicked on the print icon on one of our pretend recipe web pages.
It is possible to group actions for purposes of reporting. It might be helpful to group on "Recipe Print" action under the action group called "Cooking".
optional
Sometimes just looking at actions by name or group is does not provide enough detail. That's where labels come in. For example, let's say that we wanted to see which recipe's were being printed. To accomplish this we could assign a label to the action. In this case the label could be the name title of the recipe, say "Italian Chicken Soup".
optional
Actions can have a numeric value associated with them. This value will display summarized in reporting.
See tracker
OWA's global object exposes a trackAction
method that you can use to track actions. Example:
$owa->trackAction('Cooking', 'Recipe Print', 'Italian Chicken Soup');
Example with numeric value:
$owa->trackAction('Cooking', 'Recipe Print', 'Italian Chicken Soup', 10);