woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
314 stars 113 forks source link

[Product • Global Unique Identifier] Tracking #14377

Closed toupper closed 1 week ago

toupper commented 1 week ago

Closes: #14375

With this PR we add two tracking events for the Product Global Unique Identifier project:

We implement the necessary infrastructure to achieve these goals.

Description

Steps to reproduce

Global unique identifier edited in Product Inventory Settings

  1. Go to Products
  2. Tap on a product
  3. Tap on Inventory
  4. Edit the Global Unique Identifier and tap on Done
  5. Check that the string is tracked:

🔵 Tracked product_inventory_settings_global_unique_identifier_field_edited, properties: [store_id: 3db14754-cf30-4c42-857d-d754bca1dac1, was_ecommerce_trial: false, is_wpcom_store: true, plan: business-bundle, site_url: https://americanwootester.wpcomstaging.com, blog_id: 214354650]

Product found by global unique identifier with the barcode scanner

Make sure you have a GTIN assigned to a product. Use https://barcode.tec-it.com/ to generate the barcode with that GTIN

  1. Tap on Orders
  2. Tap on the Barcode Scanner button (top left)
  3. Scan the barcode with the assigned GTIN
  4. See how this event is tracked:

🔵 Tracked product_search_via_global_unique_identifier_success, properties: [was_ecommerce_trial: false, store_id: 3db14754-cf30-4c42-857d-d754bca1dac1, plan: business-bundle, site_url: https://americanwootester.wpcomstaging.com, blog_id: 214354650, is_wpcom_store: true, source: order_list]

Testing information

I also tested:

Screenshots

N/A


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:

dangermattic commented 1 week ago
1 Message
:book:

This PR contains changes to Tracks-related logic. Please ensure (author and reviewer) the following are completed:

  • The tracks events must be validated in the Tracks system.
  • Verify the internal Tracks spreadsheet has also been updated.
  • Please consider registering any new events.
  • The PR must be assigned the category: tracks label.

Generated by :no_entry_sign: Danger

wpmobilebot commented 1 week ago

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

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr14377-ba7719f
Version21.1
Bundle IDcom.automattic.alpha.woocommerce
Commitba7719f28890b619e03fb9f000ed43ac609276e6
App Center BuildWooCommerce - Prototype Builds #11537

Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.