Loyalty Events Schema

Optimove's Loyalty & Gamification module emits a set of events as players progress through missions, earn rewards, gain experience, and level up. This reference documents each event and its attributes.

All events share a common set of base attributes:

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand the event belongs to.
ls_playeridstringIdentifier of the player the event relates to.
📘

Mission progress vs. completion

If a mission is completed, only ls_mission_completed is emitted — no ls_mission_progress events are emitted for that completion.

ls_mission_progress

Emitted as a player makes progress toward a mission objective.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_objectiveidstringIdentifier of the mission objective.
ls_objectivenamestringDisplay name of the mission objective.
ls_progressnumberCurrent progress value toward the goal.
ls_goalnumberTarget value required to complete the objective.

ls_mission_completed

Emitted when a player completes a mission objective.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_objectiveidstringIdentifier of the mission objective.
ls_objectivenamestringDisplay name of the mission objective.
ls_statusstringCompletion status of the mission.
ls_rewardsjsonstring (optional)JSON-encoded details of any rewards granted on completion.

ls_reward_claimed_from_mission

Emitted when a player claims a reward earned from a mission.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_objectiveidstringIdentifier of the mission objective the reward came from.
ls_rewardsjsonstringJSON-encoded details of the claimed reward(s).

ls_reward_claimed_from_leaderboard

Emitted when a player claims a reward earned from a leaderboard.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_leaderboardidstringIdentifier of the leaderboard the reward came from.
ls_rewardsjsonstringJSON-encoded details of the claimed reward(s).

ls_badge_earned

Emitted when a player earns a badge.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_ruleidstring (optional)Identifier of the rule that triggered the badge, if applicable.
ls_objectiveidstring (optional)Identifier of the associated objective, if applicable.
ls_badgeidstringIdentifier of the earned badge.
ls_badgenamestringDisplay name of the earned badge.

ls_virtual_currency_added

Emitted when virtual currency is added to a player's balance.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_ruleidstring (optional)Identifier of the rule that triggered the award, if applicable.
ls_objectiveidstring (optional)Identifier of the associated objective, if applicable.
ls_currencyidstringIdentifier of the virtual currency.
ls_currencynamestringDisplay name of the virtual currency.
ls_amountnumberAmount of currency added.

ls_experience_points_gained

Emitted when a player gains experience points.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_ruleidstring (optional)Identifier of the rule that triggered the award, if applicable.
ls_objectiveidstring (optional)Identifier of the associated objective, if applicable.
ls_leaderboardidstring (optional)Identifier of the associated leaderboard, if applicable.
ls_rewardidstringIdentifier of the experience-point reward.
ls_rewardnamestringDisplay name of the reward.
ls_amountnumberAmount of experience points gained.

ls_additional_reward_claimed

Emitted when a player claims an additional reward from a mission, leaderboard, or level.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_ruleidstring (optional)Identifier of the rule that triggered the reward, if applicable.
ls_objectiveidstring (optional)Identifier of the associated objective, if applicable.
ls_leaderboardidstring (optional)Identifier of the associated leaderboard, if applicable.
ls_rewardidstringIdentifier of the claimed reward.
ls_rewardnamestringDisplay name of the claimed reward.
ls_shortcodestring (optional)Short code associated with the reward, if applicable.
ls_sourcestringSource of the reward. One of mission, leaderboard, or level.

ls_player_level_up

Emitted when a player advances to a new level.

AttributeTypeDescription
ls_createdatnumberUnix timestamp of when the event was created.
ls_brandidstringIdentifier of the brand.
ls_playeridstringIdentifier of the player.
ls_levelconfigidstringIdentifier of the level configuration.
ls_levelidstringIdentifier of the level reached.
ls_levelnumbernumberNumeric position of the level reached.
ls_levelnamestringDisplay name of the level reached.