TPStashEvent.InAppPurchase

TPStashEvent.InAppPurchase(
    userId,
    character_uuid,
    purchasable_slug,
    purchase_quantity,
    purchase_unit_price,
    purchase_total_price
)

Description

InAppPurchase collects the data of a character’s in-app purchases. It needs to be called when an event of an in-app purchase occurs during the game. It can be used for the analysis of purchase-related personas.

Parameters

Name Description Required

UserId

Player’s unique user ID (not a character’s ID) that is given by Roblox: Player.UserId

Required

character_uuid

Player’s character’s unique lD

If there is no character in the game or If you want to use it for the player, not a character, set character_uuid to TentuPlayKeyword._DUMMY_CHARACTER_ID_.

Required

purchasable_slug

Unique identifier of the purchased product

Required

purchase_quantity

The number or amount of purchased products

Required

purchase_unit_price

Unit price of the purchased product

Required

purchase_total_price

Total price of the purchased products

Required