How do I track website visits?
In order to track website visits you will need to include a snippet of code in the bottom of each page you wish to track.
Steps for tracking setup:
- Login to your Moobiz account.
- Go to 'Settings' then choose 'Marketing'.
- Simply copy the tracking code and paste it into each page you wish to track just before the closing body tag
To help make your results more useful you can also uniquely identify your links by specifying email subjects and anchor points:
<a href="mailto:hello@mooloop.com?subject=Contact+Us">Email Us</a> <a href="../../contact-us/#feedback">Contact Us</a>
Visitor information is kept for 18 months.
Tracking 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.