2 Replies Latest reply: Jul 29, 2012 1:47 PM by Liam Dilley RSS

    How do I pass a form value to Google Analytics

    new2oop Community Member

      I would like to pass a form value to Google Analytics. ie. if the user enters a value and submits the form, on the confirmation page I'd like to read the value and other form fields and pass those populate the Google Analytics tracking code ie. populate this withthe form values:


      '1234',         // order ID - necessary to associate item with transaction
      'DD44',         // SKU/code - required
      'T-Shirt',      // product name - necessary to associate revenue with product
      'Olive Medium', // category or variation
      '11.99',        // unit price - required
      '1'             // quantity - required