kalnyc67 / analytics-issues

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

Sending transactions with the measurement protocol aren't processed when a UserId is present. #477

Closed GoogleCodeExporter closed 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: Measurement Protocol

Issue summary:
Enhanced e-commerce transactions using the measurement protocol aren't 
processed when a userId is present.

Steps to reproduce issue:
1. Send POST data to https://www.google-analytics.com/collect as decribed here: 
https://developers.google.com/analytics/devguides/collection/protocol/v1/devguid
e?hl=nl#enhancedecom
2. The event is processed, the transaction is not.
3. When removing the uid from the POST-data and sending it again, the 
transaction will be processed and becomes visible in Google Analytics.

Expected output:
The transaction visible in both the user-ID property and the global property. 

Actual results:
Only the event becomes visible when a userId is present.

Notes:
We both activated enhanced e-commerce and userID. In all other cases, hits with 
a userId (events, pageviews, ...) are processed like it should be. Accept for 
transactions.

We use PHP to do the task:

send(array(
    'v' => '1',
    'tid'   => 'UA-2759391-3',
    'cid'   => '2011248066.1366974771',
    'uid'   => 'ABAE123',
    'dh'    => 'superstock.be',
    't' => 'event',
    'ea'    => 'purchase',
    'ec'    => 'ecommerce',
    'el'    => 'purchase was made',
    'dp'    => '/purchase',

    'ti'    => '12',
    'tr'    => 2000,
    'ts'    => 10,
    'tt'    => 418,
    'cu'    => 'EUR',

    'pa'    => 'purchase',
    'pr1id' => '99',
    'pr1nm' => 'With User AND Payload AND Pageview',
    'pr1pr' => 199,
    'pr1qt' => 1
));

send with curl where the above array is the payload: 
CURLOPT_POSTFIELDS  => utf8_encode(http_build_query($payload))

Original issue reported on code.google.com by mich...@puls.be on 17 Aug 2014 at 5:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks! Looking into this.

Original comment by gr...@google.com on 26 Aug 2014 at 10:34

GoogleCodeExporter commented 9 years ago
it appears we are getting this bug also, on our iOS app that was tracking GA 
correctly until we implemented the UserID tracking. We followed the docs and 
set up a UserID view, but nothing seems to track anymore. Verbose shows all the 
metrics being correctly sent, but nothing shows up on Dashboards.

Original comment by jose.go...@saplinglearning.com on 28 Aug 2014 at 10:15

GoogleCodeExporter commented 9 years ago
We have implemented the user id on our test environment but are'nt getting any 
data in our user id property, not even visitor tracking. Just to be clear: 
tracking works on the global property and we have implemented the tracking code 
according to google instructions. 

Original comment by tmgverko...@gmail.com on 29 Aug 2014 at 11:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Er, I stand corrected (deleted old comment), t=transaction with uid seems to 
work (just took a while to make it through).

Original comment by shazow on 3 Sep 2014 at 6:53

GoogleCodeExporter commented 9 years ago
This issue has been fixed. It could take approximately 4 weeks for data and 
reports to be corrected, during which you might see some data in user id views 
change. Also, during this time, we advise you not to change the User ID flag 
setting on your Properties or Views.

Original comment by gr...@google.com on 10 Sep 2014 at 7:13