Mobile app version of vmapp.org
Login or Join
Shanna517

: Use new Date().getTime(); as transaction id. It is rather unlikely that two persons book a course at the exact same millisecond (the js above produces a timestamp) and as long as you

@Shanna517

Use

new Date().getTime();


as transaction id. It is rather unlikely that two persons book a course at the exact same millisecond (the js above produces a timestamp) and as long as you do not have a backend that generates unique transaction ids this will do. Actually you would assign the value of the above expression to a variable and use that:

<script type="text/javascript">
var transid = new Date().getTime();
pageTracker._addTrans(
transid, // required
"",
"69",
"",
"",
"",
"",
""
);
pageTracker._addItem(
transid, // required
"",
"Piano voor Beginners",
"Cursussen",
"69", // required
"1" //required
);
pageTracker._trackTrans();
</script>


And you probably want to update your GA code, that looks like a really old version of the tracking code.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme