Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEngine.Analytics
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.
CloseFor 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.
CloseThe 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.
debugMode | Gets or sets a value indicating whether debug mode is enabled. |
sdkVersion | Gets the Unity Analytics Standard Event SDK version. |
AchievementStep | Sends a achievement_step event. |
AchievementUnlocked | Sends a achievement_unlocked event. |
AdComplete | Sends a ad_complete event. |
AdOffer | Sends a ad_offer event. |
AdSkip | Sends a ad_skip event. |
AdStart | Sends a ad_start event. |
ChatMessageSent | Sends a chat_message_sent event. |
Custom | Sends a custom event (eventName) with data (eventData) |
CustomEvent | Sends a custom event. |
CutsceneSkip | Sends a cutscene_skip event. |
CutsceneStart | Sends a cutscene_start event. |
FirstInteraction | Sends a first_interaction event. |
GameOver | Sends a game_over event. |
GameStart | Sends a game_start event. |
IAPTransaction | Sends a iap_transaction event. |
ItemAcquired | Sends a item_acquired event. |
ItemSpent | Sends a item_spent event. |
LevelComplete | Sends a level_complete event. |
LevelFail | Sends a level_fail event. |
LevelQuit | Sends a level_quit event. |
LevelSkip | Sends a level_skip event. |
LevelStart | Sends a level_start event. |
LevelUp | Sends a level_up event. |
PostAdAction | Sends a post_ad_action event. |
PushNotificationClick | Sends a push_notification_click event. |
PushNotificationEnable | Sends a push_notification_enable event. |
ScreenVisit | Sends a screen_visit event. |
SocialShare | Sends a social_share event. |
SocialShareAccept | Sends 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. |
UserSignup | Sends a user_signup event. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thanks for helping to make the Unity documentation better!