-
Notifications
You must be signed in to change notification settings - Fork 7
Design Event
Martin Treacy-Schwartz edited this page Dec 21, 2016
·
5 revisions
Every game is special. Therefore some needed events might not be covered by our [other event types](About Events). The design event is available for you to add your own event-id hierarchy.
ℹ️
Please note that custom dimensions and progression filters will not be added on design and error events. Therefore you cannot (at the moment) filter by these when viewing design or error metrics.
To add a design event call the following method.
-
C++:
gameanalytics::cocos2d::GameAnalytics::addDesignEvent("Kill:Sword:Robot");
-
JS:
ga.GameAnalytics.addDesignEvent("Kill:Sword:Robot");
-
Lua:
ga.GameAnalytics:addDesignEvent("Kill:Sword:Robot")
It is also possible to add a float value to the event.
This will (in addition to count) make the mean and sum aggregation available in the tool.
gameanalytics::cocos2d::GameAnalytics::addDesignEvent("BossFights:FireLord:KillTimeUsed", 234);
Field | Type | Description | Example |
---|---|---|---|
eventId | string | The eventId is a hierarchy string that can consist of 1-5 segments separated by ':'. Each segment can have a max length of 32. | "StartGame:ClassLevel1_5", "StartGame:ClassLevel6_10" |
value | float | A float event tied to the eventId. Will result in sum & mean values being available. | 34.5 |
>
> ℹ️ > Please read our event guide [here](http://www.gameanalytics.com/docs/ga-data/).
> You will get the most benefit of GameAnalytics when understanding **what** and **how** to track.
[NEXT →](Using Custom Dimensions)