Unity Analytics は、ゲームユーザーに対し、例えば、ユニークユーザー数(DAU/MAU)など、分析するための洞察力を提供します。
注: このリファレンスは、Unity 5.1 で Unity Analytics を使う方法について書かれています。Unity の旧バージョンで Unity Analytics を使用するには、https://analytics.cloud.unity3d.com/docs を参照してください。
具体的には、革新的な機能としてメトリックモニターやデータエクスプローラーを介して、ユーザーエンゲージメントと保持データにアクセスする機能が含まれています。さまざまなユーザー属性や特性にわたってプレーヤーのセグメンテーションを、追加の操作なしで 20 以上の利用可能な標準セグメントが自動的に適用されます。
機能の詳細については、Unity Analytics の ホームページ http://unity3d.com/unity/analytics を参照してください。
Important: Always make calls to the Analytics API inside the scope of an #if ENABLE_CLOUD_SERVICES_ANALYTICS statement to prevent compilation errors on platforms that do not support Analytics:
#if ENABLE_CLOUD_SERVICES_ANALYTICS // Analytics code #endif
configUrl | Get the Analytics config endpoint. |
dashboardUrl | Get the Analytics dashboard endpoint. |
deviceStatsEnabled | Controls whether the sending of device stats at runtime is enabled. |
enabled | Controls whether the Analytics service is enabled at runtime. |
eventUrl | Get the Analytics event endpoint. |
initializeOnStartup | Reports whether Unity is set to initialize Analytics on startup. |
limitUserTracking | Controls whether to limit user tracking at runtime. |
playerOptedOut | Reports whether the player has opted out of data collection. |
CustomEvent | カスタムイベント(オプション) |
EnableCustomEvent | Use it to enable or disable a custom event. |
EnableEvent | Use it to enable or disable an event. |
FlushEvents | Attempts to flush immediately all queued analytics events to the network and filesystem cache if possible (optional). |
IsCustomEventEnabled | Use it to check to custom event enable status. |
IsEventEnabled | Use it to check to an event enable status. |
RegisterEvent | This API is used for registering a Runtime Analytics event. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
ResumeInitialization | Resume Analytics initialization. |
SendEvent | This API is used to send a Runtime Analytics event. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
SetEventEndPoint | Use this API to set the event end point URL. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
SetEventPriority | Use this API to set the event priority. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
SetUserBirthYear | ユーザー情報(オプション) |
SetUserGender | ユーザー情報(オプション) |
SetUserId | ユーザー情報(オプション) |
Transaction | アプリ内課金のトラッキング(オプション) |
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:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.