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

Library does not automatically collect IAP Order Completed events, despite what docs say #338

Closed
jb-delightai opened this issue May 3, 2024 · 4 comments
Assignees
Labels

Comments

@jb-delightai
Copy link

Describe the bug
Native mobile docs (https://segment.com/docs/connections/spec/mobile/) state:

Additionally, though they’re not formally part of the Native Mobile Spec, Segment also collects Order Completed from our ecommerce spec automatically upon in-app purchases on iOS and can collect screen views automatically in iOS and Android.

But I don't think this is true when using the analytics-swift library, is it?

I think it's maybe worth:

  1. updating the docs accordingly
  2. providing an example of plugin for how to automatically collect IAP events using analytics-swift
@bsneed
Copy link
Contributor

bsneed commented May 3, 2024

That's a great callout, thanks @jb-delightai. In the meantime, the one from analytics-ios might be helpful. A swift implementation wouldn't be too far off from what's here: https://github.com/segmentio/analytics-ios/blob/master/Segment/Internal/SEGStoreKitTracker.m

@jb-delightai
Copy link
Author

Awesome, thank you! You wouldn't happen to have any example code for StoreKit v2 transactions, would you? 😃

@bsneed
Copy link
Contributor

bsneed commented May 14, 2024

I don't unfortunately; sorry I missed your reply previously.

@bsneed
Copy link
Contributor

bsneed commented May 14, 2024

I'm gonna close this and we're gonna update the doc accordingly. I have an internal ticket filed to get that done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants