Usage of _addItem() with multiple products

Discussion in 'Google Analytics' started by koppa, Sep 17, 2009.

  1. #1
    How should the _addItem() function be used when tracking orders with multiple products?

    Now my GA code structure is:

    pageTracker._trackPageview();
    pageTracker._initData();
    pageTracker._addTrans(...order info...)
    pageTracker._addItem(...product#1...)
    pageTracker._addItem(...product#2...)
    pageTracker._addItem(...product#3...)
    pageTracker._trackTrans();



    The _addTrans() seems to be working fine, but _addItem() doesn’t transmit values correctly (all the products are not showing up).

    any ideas? :confused:
     
    koppa, Sep 17, 2009 IP
  2. wiiee

    wiiee Greenhorn

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Where you don't see all the products, in GA? You need to make sure the values in the product info don't break javascript.
     
    wiiee, Sep 17, 2009 IP
  3. koppa

    koppa Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, I can’t see all ordered products in GA.

    What do You mean with “product info don't break javascript”?
    something like: pageTracker._addItem( "1709091336025", "now this “might cause” error ", “abc”, ….
     
    koppa, Sep 17, 2009 IP