Hello,
I've found this forum while searching for help to track my E-Commerce information from a thank you page.
I'm looking to add this piece of code on my page:
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
[total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
[quantity] </textarea>
</form>
but as I don't have access to the ASP.net code, I need to generate it from a javascript code. I was thinking of a document.write but I heard/read that you can't have 2 in the same page, and I'm already using a document.write for the affiliate network tracking code.
Any recommendation?
Also, I did try to generate the code for the document.write for this textarea and I wasn't able to come up with the write sequence. I would appreciate if someone could help me. All the elements in the [] are variables so I guess I should be using + between them.
Here's what I came up with so far, but it fails...
document.write("textarea id=\"utmtrans\">UTM:T|"+MyOrderID+"|[affiliation]|
[total]|[tax]| [shipping]|[city]|[state]|[country]
</textarea>");
Where MyOrderID is a variable that contains the value that should be in the sequence.
Thanks