Skip to content

🐛 [@react-native-firebase/analytics] Expose logTransaction method #8911

@asnaseer

Description

@asnaseer

What feature would you like to see?

We have an Expo 53 React Native app written in TypeScript. We use RevenueCat for purchases and are using StoreKitV2.

We want to log the trial start event. StoreKitV2 breaks Firebase's ability to automatically detect and log trial / purchase events. We were told by both RevenueCat and Google that when we know that a trial has been started, we should call Analytics.logTransaction(transaction) and this triggers Firebase to gather and log the event. In theory it automatically sucks up information like the product ID, price, trial vs not trial, etc, so we don't need to set any attributes. We have also been told that this special event only works with logTransaction. logEvent doesn't work the same.

Your @react-native-firebase/analytics SDK exposes the logEvent method. Was there a reason for not exposing the logTransaction method as well? If not, we would really appreciate this being exposed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions