woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Woo POS][Non Simple Products]Analytics for Variable products #12932

Open AnirudhBhat opened 6 days ago

AnirudhBhat commented 6 days ago

Closes: #12846

Description

This PR adds product_type property to item_added_to_cart event.

product_type : simple | variation

Testing information

Try adding Simple or Variation into cart and ensure correct product_type field is added to the item_added_to_cart event. You can check this from the logs.

The tests that have been performed

Ensured the property will be added from the logs

Images/gif

Screenshot 2024-11-15 at 4 53 17 PM

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

wpmobilebot commented 6 days ago
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit3be8fe3126a3b2bf446fe3e3ebf26f6e08167ba7
Direct Downloadwoocommerce-wear-prototype-build-pr12932-3be8fe3.apk
wpmobilebot commented 6 days ago

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit3be8fe3126a3b2bf446fe3e3ebf26f6e08167ba7
Direct Downloadwoocommerce-prototype-build-pr12932-3be8fe3.apk
codecov-commenter commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.63%. Comparing base (679b6a1) to head (3be8fe3).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## issue/12925-checkout-variations #12932 +/- ## ================================================================== Coverage 39.62% 39.63% Complexity 5973 5973 ================================================================== Files 1268 1268 Lines 73270 73276 +6 Branches 10056 10057 +1 ================================================================== + Hits 29035 29041 +6 Misses 41656 41656 Partials 2579 2579 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: