店铺和领券中心埋点修正 review by 盖剑秋
Showing
3 changed files
with
19 additions
and
5 deletions
@@ -172,15 +172,17 @@ class BrandStoreContainer extends Component { | @@ -172,15 +172,17 @@ class BrandStoreContainer extends Component { | ||
172 | let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`; | 172 | let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`; |
173 | ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); | 173 | ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); |
174 | 174 | ||
175 | + let productId = product && product.get('product_id', 0); | ||
175 | let order = orderWithString(this.props.brandStore.productList.order); | 176 | let order = orderWithString(this.props.brandStore.productList.order); |
176 | let param = { | 177 | let param = { |
177 | TYPE_ID: 6, | 178 | TYPE_ID: 6, |
178 | ENT_ID: this.props.brandStore.shopId, | 179 | ENT_ID: this.props.brandStore.shopId, |
179 | - I_INDEX: rowId+1, | ||
180 | - PRD_ID: productSkn, | 180 | + I_INDEX: rowId+1, |
181 | + PRD_ID: productId, | ||
181 | SORT_TYPE: order, | 182 | SORT_TYPE: order, |
182 | REC_ID: this.props.brandStore.productList.recId, | 183 | REC_ID: this.props.brandStore.productList.recId, |
183 | } | 184 | } |
185 | + | ||
184 | ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_DT', param); | 186 | ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_DT', param); |
185 | } | 187 | } |
186 | 188 | ||
@@ -304,7 +306,7 @@ class BrandStoreContainer extends Component { | @@ -304,7 +306,7 @@ class BrandStoreContainer extends Component { | ||
304 | TAB_ID: value, | 306 | TAB_ID: value, |
305 | TAB_NAME: name, | 307 | TAB_NAME: name, |
306 | } | 308 | } |
307 | - ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param); | 309 | + ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_TAB_C', param); |
308 | } | 310 | } |
309 | 311 | ||
310 | 312 |
@@ -568,16 +568,20 @@ export function getProductList(reload=false) { | @@ -568,16 +568,20 @@ export function getProductList(reload=false) { | ||
568 | 568 | ||
569 | function exploseProductList(shopId, order, allFilterFactors, brandId, recId, list) { | 569 | function exploseProductList(shopId, order, allFilterFactors, brandId, recId, list) { |
570 | return (dispatch, getState) => { | 570 | return (dispatch, getState) => { |
571 | + let productIdStr = ''; | ||
572 | + list && list.map((item) => { | ||
573 | + productIdStr += item.product_id + ','; | ||
574 | + }); | ||
571 | let param = { | 575 | let param = { |
572 | TYPE_ID: 6, | 576 | TYPE_ID: 6, |
573 | ENT_ID: shopId, | 577 | ENT_ID: shopId, |
574 | TOTAL: list.length, | 578 | TOTAL: list.length, |
575 | - PRD_LIST: list, | 579 | + PRD_LIST: productIdStr, |
576 | SORT_TYPE: orderWithString(order), | 580 | SORT_TYPE: orderWithString(order), |
577 | REC_ID: recId, | 581 | REC_ID: recId, |
578 | }; | 582 | }; |
579 | 583 | ||
580 | - ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST', param) | 584 | + ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST', param); |
581 | }; | 585 | }; |
582 | } | 586 | } |
583 | 587 |
@@ -278,6 +278,14 @@ export function getCoupon(couponID) { | @@ -278,6 +278,14 @@ export function getCoupon(couponID) { | ||
278 | 278 | ||
279 | } | 279 | } |
280 | dispatch(getCouponSuccess(floors)); | 280 | dispatch(getCouponSuccess(floors)); |
281 | + | ||
282 | + let param = { | ||
283 | + PAGE_NM: '领券中心', | ||
284 | + PAGE_URL: '', | ||
285 | + COUP_ID: couponID, | ||
286 | + }; | ||
287 | + | ||
288 | + ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GET_COUP', param); | ||
281 | } | 289 | } |
282 | 290 | ||
283 | dispatch(getCouponRequest()); | 291 | dispatch(getCouponRequest()); |
-
Please register or login to post a comment