rishuk51 / analytics-issues

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

enhancedECommerceTracking not being set when doing profile/view INSERT #688

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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: Management API

Name of related library and version, if applicable (e.g. Java, Python,
HTTP, Objective-C, etc.):
Internal PHP library

Issue summary:
When using the INSERT method for profiles/views, the enhancedECommerceTracking 
flag doesn't take (everything else we do seems to).

We end up needing to call a PATCH method immediately following the INSERT to 
change enhancedECommerceTracking (which works when you do it via PATCH).

Parameters we are using for INSERT (all work except the 
enhancedECommerceTracking):

array(
    'kind' => 'analytics#profile',
    'type' => 'WEB',
    'name' => 'All Web Site Data',
    'timezone' => 'America/Los_Angeles',
    'websiteUrl' => 'http://www.example.com',
    'eCommerceTracking' => true,
    enhancedECommerceTracking' => true,
    'siteSearchQueryParameters' => 's',
    'stripSiteSearchQueryParameters' => true
)

Steps to reproduce issue:
1.  INSERT a new Web Property via API
2.  INSERT a new profile view for that property via API with the 
enhancedECommerceTracking = true option

The enhancedECommerceTracking flag isn't set.

Expected output:
What do you expect to see after performing the above steps?

The enhancedECommerceTracking flag set.

Actual results:
What do you actually see after performing the above steps?

The enhancedECommerceTracking flag not set.

Notes:

Original issue reported on code.google.com by sh...@digitalpoint.com on 2 Jul 2015 at 12:27