alooi14 / analytics-issues

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

List Name (not set) for add to cart, checkout, purchase #553

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Core Reporting API

Issue summary:
As I can read here : 
https://support.google.com/analytics/answer/6014841?hl=en#product_attribution
The last Product List name (from product impression tag) should be linked to 
events : Add to cart, checkout, purchase.  
But it doesn't

Steps to reproduce issue:
1. Add Product impression's Tag on a product list, with a list name.
2. Add to cart from this product list.
3. Check the report Product List Performance on analytics

Expected output:
There should be one line, with the list name and with the "product impression" 
column set to '1' and the "add to cart" column to '1'.

Actual results:
You have on line for the list name, with the "product impression" column to 
'1'. And one line with a list name set to "(not set)" with the" add to cart" 
column to '1'.

Notes:
If you go to the product view page (with a detailImpression tag), and then add 
to cart, then it seems to work. But if you add to cart from list (without 
detail Impression tag), the list name is recorded as (not set).

Original issue reported on code.google.com by vincent....@gmail.com on 18 Dec 2014 at 9:41

GoogleCodeExporter commented 9 years ago
By reading the GA docs I came to the conclusion that this is a limitation of 
the measurement protocol and therefore GA itself.

You can find the relative document here: 
https://developers.google.com/analytics/devguides/collection/protocol/v1/paramet
ers

The description of the "Product Action List" parameter says that the product 
list of a product impression object only gets attributed to the "detail" and 
"click" actions. 

In other words, if you send the "Product Action List" parameter alongside a 
"Product Action" parameter whose value is anything else except "detail" or 
"click", then it's highly likely that the issue you described will appear in 
the "Product List Performance" report.

Using the example illustrated here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/enhance
d-ecommerce

This command won't work in our case:
ga('ec:setAction', 'add', {list: 'Search Results'});

But this will:
ga('ec:setAction', 'click', {list: 'Search Results'});

The problem occurs when the user inserts the product to his cart ("add" action) 
without interacting ("click" action) or viewing the details of ("detail" 
action) of it. 

One solution would be to send two events with similar GA ecommerce parameters 
when a user adds the product directly to his cart. The prior would be an 
interactive and the latter a non interactive event or vice versa.

Here's an example:

I'm logged into a ecommerce website, just landed on a web page and viewed all 
of the page's products (pageview with relevant enhanced ecommerce impression 
data is already sent). I now add a product with the product list "TVs" to my 
cart. At this moment two GA events should be fired:

1) One with ga('ec:setAction', 'click', {list: 'TVs'});

2) The other with ga('ec:setAction', 'add', {list: 'TVs'});

Original comment by george.p...@gmail.com on 5 May 2015 at 9:00