Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2660 closed New feature (fixed)

Support for "price" tracking on Ecommerce product page views

Reported by: matt Owned by: matt
Priority: major Milestone: 1.6 Piwik 1.6
Component: Core Keywords:
Cc: Sensitive: no


Currently we do not track the "price" of an object on a Ecommerce product page view. We only track product SKU, Name and category.

Tracking the price will be a useful data point for future uses. Also, we will be able to return the "price" in the API response as a new field.

Change History (2)

comment:1 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5191]) Fixes #2660

  • Adding price tracking on Ecommerce pages, via JS or PHP api.
  • Displaying price in API field avg_price ONLY IF the product was NOT purchased. If a product was purchased, the "display price" tracked is not displayed and purchased price is used instead.
  • Price tracked with this feature will ONLY be displayed as "Avg_price" in Product Names, and Product SKUs ONLY WHEN the products havent been bought.
  • Hacking around tracking price for ecommerce items, using a custom variable and small custom hacks to the SQL to get the average price for each custom var. Similar to doing basic version of custom variables co variation
  • Allow custom variables values to be integer (previously would fail to record the custom variable)

TODO: Update Doc

comment:2 Changed 3 years ago by matt (mattab)

(In [5194]) Refs #2660

  • Fix bug in JS API
  • Now use price tracked in categories to process avg price per category
Note: See TracTickets for help on using tickets.