promotably / api

API service
Eclipse Public License 1.0
0 stars 1 forks source link

Event 'productview' Being Called On Cart Add #205

Open bpromo opened 9 years ago

bpromo commented 9 years ago

Steps To Reproduce:

  1. Open a tunnel to staging
  2. Start running this query: select site_shopper_id,type,control_group from events where site_shopper_id = '337ab4d8-5cbb-46a5-9f30-c2c92cd9b7ba';
  3. Browse the shop and view products
  4. Add product to cart
  5. Browser returns you to the same product page with a new UI element to view your cart

In step 5 we get a new productview event. I think if possible we should catch that the item was added to cart (and therefore already viewed) otherwise our metrics will be skewed for people who purchase.

Realize this shouldn't be in API but I'm not sure where it should be. I think either our php module or our JS pixel would need to be aware of the repeat product page view and make this correction.

cc @cvillecsteele @tomsouthall @smnirven @wgb

cvillecsteele commented 9 years ago

This is a strange and unfortunate artifact of the way woocommerce (really wordpress) works. I've been aware of it for some time but do not know how (or if) we can work around it.

For now I think we have to live with it. :(

cvillecsteele commented 9 years ago

Oh and yes this should be reported on https://github.com/promotably/woocommerce too.