Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Discussions > Analytics Integrations > E-Commerce and Multiple Items
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CoadMunky13  
View profile  
 More options May 22 2008, 3:18 pm
From: CoadMunky13
Date: Thu, 22 May 2008 12:18:52 -0700 (PDT)
Local: Thurs, May 22 2008 3:18 pm
Subject: E-Commerce and Multiple Items
I've been searching and have not found much on tracking multiple items
using the analytics e-commerce api.

We have a fairly simplistic shopping cart which puts up a read only
receipt for the buyer to print when their order is complete.  On that
form are hidden fields containing arrays of text strings which I parse
out in the backend to create the table of their order.

Is there any way to:

1-track multiple items using the analytics e-commerce api?

2- send an array of values instead of parsing out each individual
value to send via the additem api?

Most of what I've seen out there in the way of blogs and such has
shown only the simple, static type of example for a single item.  Any
help at all is greatly appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
KeepItLucid  
View profile  
 More options May 23 2008, 10:03 am
From: KeepItLucid
Date: Fri, 23 May 2008 07:03:40 -0700 (PDT)
Local: Fri, May 23 2008 10:03 am
Subject: Re: E-Commerce and Multiple Items
How the code is written will depend on the shopping cart software that
you are using.  I use Pinnacle Cart and they list the code here on
their website:

http://www.pinnaclecart.com/kb/questions/39/How+do+I+use+Google+Analy...

Here's the code:

<body onLoad="javascript:__utmSetTrans()">

<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|{$order_id}|{$affiliation}|
{$order_amount}|{$tax}| {$shipping_amount}|{$city}|{$region}|
{$country}
{foreach from=$items item="item"}
UTM:I|{$order_id}|{$item.sku}|{$item.product_name}|
{$item.catalog_name}|
{$item.price}|{$item.quantity}
{/foreach}
 </textarea>
</form>
<script type="text/javascript">
this.document.body.onload="javascript:__utmSetTrans()";
</script>

Check with your shopping cart provider to see what works for your
cart.  If they aren't helpful, then you'll want to post the name of
the shopping cart software here to see if anyone else has had
experience with it.

-
Ben
http://www.keepitlucid.com

On May 22, 12:18 pm, CoadMunky13 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ShoreTel  
View profile  
 More options May 23 2008, 2:32 pm
From: ShoreTel
Date: Fri, 23 May 2008 11:32:56 -0700 (PDT)
Local: Fri, May 23 2008 2:32 pm
Subject: Re: E-Commerce and Multiple Items
To send more than one item in a single e-commerce transations simply
call addItem for each item you want to add.

If your item(s) are stored in an array (named "items") you can do
something like this

pageTracker._addTrans("orderId", "affiliation", "subtotal", "tax",
"shipping", "city", "state", "country");
for (var i in items) {
    pageTracker._addItem("orderid", items[i]["sku"], items[i]["name"],
items[i]["category"], items[i]["price"], items[i]["quantity"]);

}

On May 23, 7:03 am, KeepItLucid wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duong.thai  
View profile  
 More options Jun 17 2008, 2:57 pm
From: duong.thai
Date: Tue, 17 Jun 2008 11:57:53 -0700 (PDT)
Local: Tues, Jun 17 2008 2:57 pm
Subject: Re: E-Commerce and Multiple Items

I am trying to add the _addItem to all my items. However when I test
it out, it only records the first 2 item and not there rest.

1. I've added it like this:
onClick='pageTracker._addItem();pageTracker._trackTrans();'
I've put the  _addTrans at the top of my page (right after the <body>
tag with my analytics code.
Is this correct?

Please help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ShoreTel  
View profile  
 More options Jun 17 2008, 3:17 pm
From: ShoreTel
Date: Tue, 17 Jun 2008 12:17:57 -0700 (PDT)
Local: Tues, Jun 17 2008 3:17 pm
Subject: Re: E-Commerce and Multiple Items
Why are adding items using an onclick? Even so, you should not be
calling _trackTrans immediatly afterward. You should wait to call
trackTrans until *after* all of your items are inserted using separate
addItem() calls for each item.

On Jun 17, 11:57 am, duong.thai wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian K BC  
View profile  
 More options Jun 18 2008, 1:25 pm
From: Brian K BC
Date: Wed, 18 Jun 2008 10:25:01 -0700 (PDT)
Local: Wed, Jun 18 2008 1:25 pm
Subject: Re: E-Commerce and Multiple Items
What I find strange is that duong.thai is getting 2 items showing per
transaction - I would have expected only 1 because _trackTrans() is
being called after each _addItem().

However, the process is very clearly explained at
http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&ans...

Go through and apply each instruction and if there are any
instructions that are not clear or not working as expected, provide
the details.

We have also not been told what other action is taken when the object
with the onClick event is clicked - is the page reloaded and
_addTrans() is called again or is it some ajax code that does not
reload the page?

Brian Katz
VKI Studios - Google Analytics Authorized Consultants
http://www.vkistudios.com

On Jun 17, 12:17 pm, ShoreTel wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »