DTM Numeric and Currency Events
We have several business requirements that call for tracking several of the things we are measuring as a Numeric or Currency event. We are using DTM to deploy Adobe and documentation here is anemic at best in describing how to implement these events in DTM.
Example 1:
Track the loan amount a customer selects when applying for a loan as a currency event. I currently have this in the custom code section for a direct call rule tracking the submission of that step in the loan process:
var loanamountselected = _satellite.getVar('LoanAmountSelected'); s.events="event11="+loanamountselected;
'LoanAmountSelected' is a data element I have created that store the amount.
Example 2:
Track page load time as a numeric event so that I can make calculated metrics off of the page load time. Currently I have implemented the getLoadTime plugin and the appendList plugin int he custom code section in the general Adobe Tool settings.
I have a Global page load rule that fires at the top of every page that then contains the following:
if(s_getLoadTime())s.events=s.apl(s.events,'event30='+s_getLoadTime(),',',1);
Both of these are not returning any data. How should they be correctly implemented?