David Kavalsky
posted this on October 20, 2011 09:20
Are you interested in tracking average order value and product id from e-commerce transactions that happen in your shopping cart back into your LiveBall console for reporting and optimization? No problem! You can track the average order value and product id back to LiveBall by adding these fields to the Convert tracking script (located in your LiveBall console) and placing this javascript on the confirmation page of your website or shopping cart.
Before We Begin
To track average order value and product id successfully back to LiveBall, you will first create these data fields in your LiveBall console.
Let’s Get Started!
Now that the data fields have been created in LiveBall, insert the below javascript before the closing </body> tag of your external confirmation page (i.e. your shopping cart thank you page). You’ll work with your website or shopping cart administrator to dynamically populate the script with the order value and any other information you are passing.
<!-- LiveBall Convert Javascript begins -->
<script type="text/javascript" src="https://yourconsole.postclickmarketing.com/Outside/liveball.js"></script>
<script type="text/javascript">
liveballRecognize("yourconsole.postclickmarketing.com");
liveballData("averageordervalue", "REPLACE_WITH_AVERAGE_ORDER_VALUE");
liveballData("other_data", "REPLACE_WITH_OTHER_DATA");
liveballConvert();
</script>
<!-- LiveBall Convert Javascript ends -->
*Please note that ”averageordervalue” and “other_data” are placeholders for the data names you created in the “Before we begin” portion above. These will be replaced with the data names you create and save in your console’s Data Collection. Additionally, please note that “yourconsole” is also a placeholder and will need to be replaced with the default address of your LiveBall console. The postclickmarketing part of the domain should not be changed, however.
Once the above Javascript is in place, the data points in the script will track back to LiveBall. From there, you can generate a Source and Creative Drilldown report that will include these particular data points’ values. To view this report, follow these steps: