Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application_store_snapshot event does not show up in Tracks for iOS #10574

Closed
1 of 3 tasks
jaclync opened this issue Aug 30, 2023 · 1 comment · Fixed by #10577
Closed
1 of 3 tasks

application_store_snapshot event does not show up in Tracks for iOS #10574

jaclync opened this issue Aug 30, 2023 · 1 comment · Fixed by #10577
Assignees
Labels
category: tracks Related to analytics, including Tracks Events. type: bug A confirmed bug.
Milestone

Comments

@jaclync
Copy link
Contributor

jaclync commented Aug 30, 2023

Ref p1693330596268339/1692625489.705669-slack-C039133E1M3

Describe the bug

Even though we implemented the Tracks event in #10484, we didn't see any events in Tracks after a day of release.

After a deeper look, I found a silent validation error on the event properties because the property name can only contain alpha characters and underscores while the payment gateway properties have -: Custom properties dictionary keys must contain alpha characters and underscores only.

Validation errors like this aren’t logged to the console at all, and were missed during development/review. I should have made sure the Tracks event appears after a day or so. I’m also looking into the Tracks library why the error messages aren’t shown in console while it’s supposed to separately in Automattic/Automattic-Tracks-iOS#262.

To Reproduce
Steps to reproduce the behavior:

  • Reinstall the app, or log in to a store whose snapshot hasn't been tracked
  • Log in and connect to a store --> shortly after entering the site, an event is logged in the console 🔵 Tracked application_store_snapshot but it doesn't get sent in the Tracks POST request after a bit

Expected behavior

The Tracks event should be included in the POST request and show up in Tracks.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Mobile Environment
Please include:

  • Device: any
  • iOS version: any
  • WooCommerce iOS version: 15.1

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin. ```
@jaclync jaclync added type: bug A confirmed bug. category: tracks Related to analytics, including Tracks Events. labels Aug 30, 2023
@jaclync jaclync added this to the 15.1 ❄️ milestone Aug 30, 2023
@jaclync jaclync self-assigned this Aug 30, 2023
@peril-woocommerce
Copy link

Fails
🚫 Please add a feature label to this issue. e.g. 'feature: stats'

Generated by 🚫 dangerJS

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. type: bug A confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants