RECOMMENDEDappRecommended events

in_app_purchase

Google docs

App-stream event for an in-app product or subscription purchase. It may be collected automatically by the Firebase SDK/store integration; log it manually only when automatic purchase tracking is unavailable and avoid duplicate events.

Parameters · 10

ParameterDescriptionTypeRequiredExample
currency

Currency associated with value, in 3-letter ISO 4217 format.

string

Yes*

USD

value

Monetary value of the in-app purchase.

number

Yes*

30.03

product_id

Product identifier.

string

No

ABC123456789

product_name

Product name supported by Firebase Analytics SDKs.

string

No

Premium plan

price

Product price supported by Firebase Analytics SDKs.

number

No

9.99

quantity

Purchase quantity; defaults to 1 where supported.

number

No

1

subscription

Whether the purchase is a subscription.

boolean

No

true

free_trial

Whether the event is for a free trial subscription.

boolean

No

false

price_is_discounted

Whether the item price is discounted.

boolean

No

false

introductory_price

Introductory subscription price when supplied by automatic app purchase collection.

number

No

4.99