Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnalyticsEvent

class in UnityEngine.Analytics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The main class of the Unity Analytics Standard Event SDK.

The event methods in this class provide 'fire and forget' ease of use, allowing you to send a standard event with a single line of code. If you expect to be sending the same standard event with some amount of frequency, you may want to create an event payload and invoke the Send method when the event occurs. The event methods in this class provide "fire and forget" ease of use, allowing you to send a standard event with a single line of code. If you expect to be sending the same standard event with some amount of frequency, you may want to create an event payload and invoke the Send method when the event occurs.

Static Properties

debugMode Gets or sets a value indicating whether debug mode is enabled.
sdkVersion Gets the Unity Analytics Standard Event SDK version.

Static Methods

AchievementStep Sends a achievement_step event.
AchievementUnlocked Sends a achievement_unlocked event.
AdCompleteSends a ad_complete event.
AdOfferSends a ad_offer event.
AdSkipSends a ad_skip event.
AdStartSends a ad_start event.
ChatMessageSent Sends a chat_message_sent event.
Custom Sends a custom event (eventName) with data (eventData)
CustomEventSends a custom event.
CutsceneSkip Sends a cutscene_skip event.
CutsceneStart Sends a cutscene_start event.
FirstInteraction Sends a first_interaction event.
GameOverSends a game_over event.
GameStart Sends a game_start event.
IAPTransaction Sends a iap_transaction event.
ItemAcquiredSends a item_acquired event.
ItemSpentSends a item_spent event.
LevelCompleteSends a level_complete event.
LevelFailSends a level_fail event.
LevelQuitSends a level_quit event.
LevelSkipSends a level_skip event.
LevelStartSends a level_start event.
LevelUpSends a level_up event.
PostAdActionSends a post_ad_action event.
PushNotificationClick Sends a push_notification_click event.
PushNotificationEnable Sends a push_notification_enable event.
ScreenVisitSends a screen_visit event.
SocialShareSends a social_share event.
SocialShareAcceptSends a social_share_accept event.
StoreItemClick Sends a store_item_click event.
StoreOpened Sends a store_opened event.
TutorialComplete Sends a tutorial_complete event.
TutorialSkip Sends a tutorial_skip event.
TutorialStart Sends a tutorial_start event.
TutorialStep Sends a tutorial_step event.
UserSignupSends a user_signup event.

Did you find this page useful? Please give it a rating: