OK I read that link but it didnt make much since for me. In our situation we do not sell several products at some fixed price. We provide Mortgage loans which can be at any value, so I can't hard code the value into the script. i have to capture that from the input box. Having said that, I am not clear about this portion of the script you suggest above.
s.products="loan1;aayydyyd;1;" + loanAmount;
s.purchaseID="12341234"
s.events="purchase"
what is---> "loan1;aayydyyd;1;" <---- what do the letters stand for.. aayydyyd.. ?
the purchaseId can that be fixed and always be -= to 12341234 or is this suppose to be dynamic and change each time?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Darius,
The way purchase event is being implemented is wrong. The loan amount needs to be passed in the s.products variable and the purchase only should be initialize in s.events syntax followed by s.purchaseId variable.
Hence the code should be like this :
$("input[name='loanAmount']").mouseleave(function(){ var loanAmount = $("input[name='loanAmount']").val(); if (loanAmount.length){ s.products="loan1;aayydyyd;1;" + loanAmount; s.purchaseID="12341234" s.events="purchase" } else { return false} });
Please see the following link for more information on this- https://marketing.adobe.com/resources/help/en_US/sc/implement/event_purchase.html
Thanks & Regards
Parit Mittal
Views
Replies
Total Likes
Hi Darius,
The way purchase event is being implemented is wrong. The loan amount needs to be passed in the s.products variable and the purchase only should be initialize in s.events syntax followed by s.purchaseId variable.
Hence the code should be like this :
$("input[name='loanAmount']").mouseleave(function(){ var loanAmount = $("input[name='loanAmount']").val(); if (loanAmount.length){ s.products="loan1;aayydyyd;1;" + loanAmount; s.purchaseID="12341234" s.events="purchase" } else { return false} });
Please see the following link for more information on this- https://marketing.adobe.com/resources/help/en_US/sc/implement/event_purchase.html
Thanks & Regards
Parit Mittal
Views
Replies
Total Likes