How do I track custom events?
To track custom events on your website you can utilise Moobiz website analytics directly.
For example if you wanted to track visits to your websites contact form, and subsequently successful submissions, you would do the following:
- Add the action logging Javascript code to your contact forms on submit action:
<form action"/contact/" method="post" onsubmit="logAction('Form submission', 'Contacting us', 'L');"> <!-- Form content --> </form> - Add the action logging Javascript code to your successful submission page before the closing </body> tag:
<script type="text/javascript"> logAction('Thanks for contacting us', 'Contacting us submission received', 'L'); </script> </body> -
Set up a new Analytical Goal, with the following 2 Goal Steps in order to track your results:
- Step 1 using the URL: "Contacting us" (or whatever description you gave your first action, without quotes)
- Step 2 using the URL: "Contacting us submission received" (or whatever description you gave your second action, without quotes)
The logAction(); method requires 3 parameters:
- The title of the current webpage or a brief description of the action.
- The page description or a more detailed description of the action.
-
A unique single letter action type identifier:
- E represents an email action such as any link containing a mailto: prefix.
- L represents any action that leads to another page.
- D represents any action that points directly to a file such as PDF.

Signup
Pricing & Billing
Data & Security
Access & Availability
Accounting
Contacts
eCommerce
Email Marketing
Invoicing
Printing & PDFs
Products
Projects & Proposals
Website
