Skip to content

Conversation

@iamgabrielma
Copy link
Contributor

@iamgabrielma iamgabrielma commented Aug 28, 2025

Description

This PR adds the following track events to POS settings:

woocommerceios_pos_settings_open
woocommerceios_pos_settings_closed
woocommerceios_pos_settings_store_details_tapped
woocommerceios_pos_settings_hardware_tapped
woocommerceios_pos_settings_help_tapped
woocommerceios_pos_empty_cart_set_up_scanner_tapped

Testing

  • Navigate to POS, in the empty cart, tap Scan Barcode, see event logged
🔵 Tracked pos_empty_cart_set_up_scanner_tapped, properties: [blog_id: -1, was_ecommerce_trial: false, store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f, site_url: https://indiemelon.mystagingwebsite.com, plan: , is_wpcom_store: false]
  • Tap on ... > Settings, observe:
🔵 Tracked pos_settings_open, properties: [site_url: https://indiemelon.mystagingwebsite.com, blog_id: -1, plan: , store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f, is_wpcom_store: false, was_ecommerce_trial: false]
  • Tap on the sidebar items (Store, Hardware, Help), then close settings, you should see an event for each:
🔵 Tracked pos_settings_store_details_tapped, properties: [is_wpcom_store: false, site_url: https://indiemelon.mystagingwebsite.com, blog_id: -1, store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f, was_ecommerce_trial: false, plan: ]

🔵 Tracked pos_settings_hardware_tapped, properties: [site_url: https://indiemelon.mystagingwebsite.com, blog_id: -1, is_wpcom_store: false, plan: , was_ecommerce_trial: false, store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f]

🔵 Tracked pos_settings_help_tapped, properties: [is_wpcom_store: false, site_url: https://indiemelon.mystagingwebsite.com, blog_id: -1, store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f, was_ecommerce_trial: false, plan: ]

🔵 Tracked pos_settings_closed, properties: [was_ecommerce_trial: false, plan: , is_wpcom_store: false, site_url: https://indiemelon.mystagingwebsite.com, store_id: c5bd46cc-1804-4f7b-badb-bb98c449127f, blog_id: -1]

Event registration will be done separately

@iamgabrielma iamgabrielma added type: task An internally driven task. feature: POS labels Aug 28, 2025
@iamgabrielma iamgabrielma added this to the 23.2 milestone Aug 28, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Aug 28, 2025

1 Warning
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
1 Message
📖

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 🚫 Danger

@iamgabrielma iamgabrielma requested a review from joshheald August 28, 2025 07:49
@iamgabrielma iamgabrielma added the category: tracks Related to analytics, including Tracks Events. label Aug 28, 2025
@wpmobilebot
Copy link
Collaborator

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

App NameWooCommerce iOS Prototype
Build Numberpr16051-14168aa
Version23.1
Bundle IDcom.automattic.alpha.woocommerce
Commit14168aa
Installation URL6c4s0r5hd896g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Copy link
Contributor

@joshheald joshheald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described...

I noticed that the "store details tapped" event doesn't fire when you open settings... which makes sense since it hasn't been tapped... but also stops us being able to compare what's shown.

WDYT about switching to say what's shown instead of what's tapped? Not a big deal either way though.

@iamgabrielma
Copy link
Contributor Author

but also stops us being able to compare what's shown

Right, we're making the assumption that Store is always shown first when the open settings action happens, and if merchants just stay in that item, it won't be tracked for comparison 🤔

Lemme raise this one with Android as well and see what they think.

Base automatically changed from task/WOOMOB-1168-move-buttons-from-cta to trunk August 29, 2025 00:17
@iamgabrielma
Copy link
Contributor Author

Thanks for the feedback Josh! I'll go ahead and merge this one now, I have no strong opinion on it, and Android prefers to keep them as they are and use pos_settings_open for comparison if needed.

@iamgabrielma iamgabrielma merged commit 64120ad into trunk Aug 29, 2025
25 of 28 checks passed
@iamgabrielma iamgabrielma deleted the task/WOOMOB-1041-pos-settings-analytics branch August 29, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: tracks Related to analytics, including Tracks Events. feature: POS type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants