Support for "price" tracking on Ecommerce product page views #2660

mattab opened this Issue Sep 14, 2011 · 2 comments

1 participant

Piwik Open Source Analytics member

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.

Piwik Open Source Analytics member

(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

Piwik Open Source Analytics member

(In [5194]) Refs #2660

  • Fix bug in JS API
  • Now use price tracked in categories to process avg price per category
@mattab mattab added this to the 1.6 Piwik 1.6 milestone Jul 8, 2014
@mattab mattab self-assigned this Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment