Iftekhar-ifti / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Enhanced E-commerce not registered in App-type analytics property #778

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
---------------------------------------------------------------------------
NOTE: This tool is not designed to request help. It is only for reporting
issues and requesting features for the Google Analytics libraries.

If you are a developer and you need help, visit:
https://developers.google.com/analytics/help/

If you are not a developer and you need help, visit:
https://support.google.com/analytics
---------------------------------------------------------------------------
Name of affected component: Measurement Protocol

Issue summary:
Using examples in documentation straight into hit builder, the generated hit 
does not register well in Analytics when property is of type App. I have not 
performed tests with Property type web.

Steps to reproduce issue:
1. Use Hit builder with the pre-generated hit: 
https://ga-dev-tools.appspot.com/hit-builder/?v=1&t=pageview&tid=UA-68577611-1&c
id=555&dh=mydemo.com&dp=%2Freceipt&dt=Receipt%20Page&ti=T12345&ta=Google%20Store
%20-%20Online&tr=37.39&tt=2.85&ts=5.34&tcc=SUMMER2013&pa=purchase&pr1id=P12345&p
r1nm=Android%20Warhol%20T-Shirt&pr1ca=Apparel&pr1br=Google&pr1va=Black&pr1ps=1

2. Change the TID to your own property (of type App)
3. Send the hit (duh) :)

Expected output:
Transaction, products and prices registered in Analytics

Actual results:
Transaction including correct amount, but products have no quantities, nor 
price.
Google Sheet: 
https://docs.google.com/spreadsheets/d/15ZE6yLNhDHJbnIwDfCtqp98WRvffOjGeNHVVXwe4
5ZY/edit?usp=sharing

When exporting to PDF, there are only zeroes (but that doesn't belong in this 
report) :)

Notes:
You can reach me on arvid.wahlberg@gmail.com or +46731400008 for follow-up 
questions.
I'm running a company build POS systems for restaurants and intend to use 
analytics for sales reports to my customers. At some later stage we'll figure 
out a way of connecting use of AdWords to the POS sales data.

Original issue reported on code.google.com by arvid.wa...@gmail.com on 3 Nov 2015 at 7:17

GoogleCodeExporter commented 8 years ago
It seems the payload is missing the pr1qt=1

https://developers.google.com/analytics/devguides/collection/analyticsjs/field-r
eference#enhanced-ecomm

Product Quantity
The quantity of a product. Product index must be a positive integer between 1 
and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be 
installed before using this field.

Since documentation regarding MP is so bad, nedd to jump there and there to 
guess proper protocol
Decipering the analytics.js is also part of the only source of knownlege

Original comment by doe...@gmail.com on 10 Nov 2015 at 8:33