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

feat(analytics): add logTransaction method #629

Open
5 of 16 tasks
TomDoesb opened this issue May 22, 2024 · 0 comments
Open
5 of 16 tasks

feat(analytics): add logTransaction method #629

TomDoesb opened this issue May 22, 2024 · 0 comments

Comments

@TomDoesb
Copy link

TomDoesb commented May 22, 2024

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

6.0.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

Firebase documentation states the following on tracking in app purchases with storekit 2
image

However the logTransaction() is not available in capacitor-firebase and logging the event using
FirebaseAnalytics.logEvent({name: 'in_app_purchase', params: {productIdentifier: productIdentifier}});

gives the following log message: 10.24.0 - [FirebaseAnalytics][I-ACS013006] Event name is reserved. Ignoring event: in_app_purchase

Expected behavior

I would expect to be able to log an iOS StoreKit 2 purchase. This is now not possible because google analytics expects the key_event name to be in_app_purchase which is reserved..

Reproduction

Steps to reproduce

Other information

Docs: https://firebase.google.com/docs/analytics/measure-in-app-purchases

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 6.0.0
@capacitor/ios: 6.0.0
@capacitor/core: 6.0.0

[success] iOS looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@TomDoesb TomDoesb added bug/fix Something isn't working needs: triage labels May 22, 2024
@TomDoesb TomDoesb changed the title bug: bug: Not able to log In App Purchase using Storekit 2 May 22, 2024
@robingenz robingenz added feature Feature package: analytics and removed bug/fix Something isn't working labels May 22, 2024
@robingenz robingenz changed the title bug: Not able to log In App Purchase using Storekit 2 feat(analytics): add logTransaction method May 22, 2024
@robingenz robingenz added the platform: ios iOS platform label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants