Information Technology Reference
In-Depth Information
version 5
YWATracker.setAction(“01;02;PENDING_SALE“);
YWATracker.setAmount(“USD100.00;;USD2.50”);
Whether you assign newsletter signup to action number 02 is up to you, and you
might have a different action named for newsletter signup. as we debated in the initial
section about tracking conversion actions, you can use the following variables multiple
times in one request:
A
CTION
A
MOUNT
O
RDERID
_
S_TAX
_
S_SHIPPING
_
S_DISCOUNT
a
ll action-based custom fields. (i will discuss custom fields in Chapter 5.)
42
i know that we have not yet discussed merchandizing variables, such as _S_UNITS ,
but it is important to note that they will only refer to the very first action in the previous list.
Tracking On-click Actions
When i say on-click , i am talking about the onclick event registered on your web page
objects. this event registers when the object has been clicked and provides you with an
opportunity to execute a desired action on that click, such as record it. this is again
a continuation of the tracking script object discussion from the previous sections, and
you would in fact be able to use the same wrapper function from previous examples for
this scenario:
version 4
<script language=”Javascript”>
function recordaction(actionnumber) {
var tracking_object = createITT();
tracking_object.ACTION = actionnumber;
tracking_object.submit_action();
}
</script>
version 5
<script language=”Javascript”>
function recordaction(actionnumber) {
var YWATracker = YWA.getTracker(“1000123xxxx”);
YWATracker.setAction(actionnumber);
YWATracker.submit_action();
}
</script>
Search WWH ::




Custom Search