close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Google Analytics - eCommerce Tracking Help

Thread began 10/22/2009 12:43 pm by psychobilly1165508 | Last modified 10/22/2009 4:31 pm by Jason Byrnes | 1378 views | 1 replies |


Google Analytics - eCommerce Tracking Help

Hi, I'm trying to add google e-commerce tracking but have no idea how "loop" the "pageTracker._addItem" variables.

It obviously works fine if only one product is ordered, but if multiple products are ordered it does not see it. I have no idea how to accomplish this with JavaScript.

Any help would be appreciated.

Here's the portion of code that needs to loop.

"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity


Sign in to reply to this post

Jason ByrnesWebAssist

use a cart repeat region.

On the Server Behaviors panel, click the plus button and select eCart -> Cart Display -> Repeat Cart region.

Assuming your cart name is eCart1, the code should look like:


while (!$eCart1->EOF())      {
"1234", // Order ID
"<?php echo $eCart1->DisplayInfo("ID"); ?>", // SKU
"<?php echo $eCart1->DisplayInfo("Name"); ?>", // Product Name
"<?php echo $eCart1->DisplayInfo("Category"); ?>", // Category
"<?php echo $eCart1->DisplayInfo("Price"); ?>", // Price
"<?php echo $eCart1->DisplayInfo("Quantity"); ?>" // Quantity

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...