Website Optimizer Tips for Tracking Complex Conversions
You don’t need to have a separate page to track Website Optimizer conversions
Conversion Tracking for Videos & Demos
Want to know how well your videos or product demos are working? You can test the effectiveness of one video style versus another style of video using the time on page as a conversion goal. For example, if the two videos you are testing are say 2 minutes long you can set the conversion to be counted when they reach the full 2 minutes. Or maybe count a conversion at the point where the meat of the video wraps up (say at 75% of the way through the video at the 1 minute and 30 second mark). This type of conversion tracking is a great way to be able to utilize Google Website Optimizer to determine which video your users respond better to.
To use this method you will need to add the code below, in place of the Conversion code provided in the Website Optimizer tool. This new code should be pasted into the page after your tracking script, and immediately before the </body> closing tag. You’ll need to update the _uacct and urchinTracker variables with your own account numbers (they’ll be the same numbers that appear in your tracking script on the same page).
setTimeout(‘_uacct = “UA-xxxxxx-x”;urchinTracker(“/xxxxxxxxx/goal”);’, 60000);
To modify the amount of time that should elapse before a conversion is counted, change the 60000 figure above. This figure represent milliseconds, so 60000 equals 60 seconds.
Google Website Optimizer Conversion Tracking for Link Clicks
If you don’t have one specific conversion page because more than one link destination page (i.e. action) from a page can count as a conversion than this is a great technique to use.
Code for Tracking Links as a Conversion
First, put this code below right after the <body> tag:
_uacct = ‘UA-XXXXXXX-X’;
Next, put this code on every link you want to track. Your link would look like this:
<a href=http://www.yahoo.com/” onclick=”return ConversionCount();”>You text link</a>
Google Website Optimizer Conversion Tracking for Ajax Forms
If you don’t have one separate conversion page due to the use of Ajax forms that submit to the same page or have multiple forms that submit to multiple destinations you can use this technique to track the specific forms actions that you want to count as a conversion.
<form action=”/cart.html” method=”post” onsubmit=”return ConversionCount()”>
Leave a comment here or ask a question on our Google Website Optimizer Group on LinkedIn