Hi Dan
i did run the code and a part of it works. a transcation
with google gets
recorded however all the other parameters are not recorded. I
suspect this
is due to my syntax.
Im a hack and dont know too much about js arrays but from
what ive been able
to find on the web, would it look something like this?
Should they be js variables do you think?
<!----google e-com tracking--------->
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-1");
pageTracker._trackPageview();
<!------Output query results into javascript-------->
<cfoutput query="order2">
pageTracker._addTrans(
var #toScript(i_orderid, "OrderID")#; // Order ID
var #toScript(d_grandtotal, "Total")#; // Total
);
</cfoutput>
"Dan Bracuk" <webforumsuser@macromedia.com> wrote in
message
news:g9oiia$t5s$1@forums.macromedia.com...
> If you want to know if the code works, run it.
>
> There are a couple of ways to mix cold fusion variables
with javascript.
> One
> is the to_script tag. The other is to surround the
entire javascript
> block
> with cfoutput.
>
> In your case, to_script seems like a better approach.
Make each query
> column
> a js array.
>