Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
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".
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".
Actions can have a numeric value associated with them. This value will display summarized in reporting.
Tracking Actions via PHP
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);