Forum Moderators: DixonJones

Message Too Old, No Replies

Help with Embedded Script Syntax!

         

Jimpaka

12:37 am on Jan 17, 2004 (gmt 0)

10+ Year Member



I have a relatively simple problem that I'm sure someone will be able to help me out with here. I've just started using Ecommstats.com's services, and I'm having trouble with a script that I need to embed into my shopping cart html. Here is the script that needs to be embedded that I'm having trouble with:

<script>
// for Ecommstats
arielSetOrderID ('<%=ORDER_ID%>'); // must be unique
arielSetTotal(<%=ORDER_TOTAL%>);
</script>

... The instructions given to me by them are as follows: "Replace the variables ORDER_ID and ORDER_TOTAL with the variables created by your e-commerce system. The names of these will vary depending on the system you use."

Now, the two variable names that I will be using (taken from my shopping cart page) are as follows:

*!addr_email!*
*!Grand_total!*

obviously the variable *!Grand_total!* is the ORDER_TOTAL variable and the unique ID will be *!addr_email!*

I have emailed the ecommstats support people but since it's a friday evening I don't expect to hear from them right away, which is why I thought someone here might quickly be able to give me a hand.

The problem is that I can't seem to get the syntax correct when I put my variable names into their script. This means that when I load my shopping cart I get errors on the page, and obviously the information that I'm trying to track isn't being tracked because of these errors in the syntax of the script.

Anyone?

prophecy

12:07 am on Mar 1, 2004 (gmt 0)

10+ Year Member



Hi,

The script should look something like this:

<script>
// for Ecommstats
arielSetOrderID ('*!addr_email!*'); // must be unique
arielSetTotal(*!Grand_total!*);
</script>