Tracking - VirtueSky/sunflower GitHub Wiki
Firebase Analytics Tracking
- Install Firebase Analytics and add define symbols
- Create scriptable tracking firebase from sunflower control panel
(or
right click
-> Sunflower
-> Tracking Event
-> Firebase Analytic
)
- Has scriptable log event no parameter and scriptable log event (1,2,3,4,5,6) parameter
- You need to fill in
Event Name
and Parameter Name
(for scriptable log event has parameter)
- Tracking event
public TrackingFirebaseNoParam logEventStartGame;
public TrackingFirebaseOneParam logEventWinLevel;
void StartGame()
{
logEventStartGame.TrackEvent();
}
void WinLevel(string levelName)
{
logEventWinLevel.TrackEvent(levelName);
}
Adjust Tracking
- Open tab
Adjust
in Sunflower Control Panel to install adjust sdk and add define symbol
- Create
AdjustSettings
and enter AppToken
- Create
scriptable tracking adjust
- Init start tracking adjust
private void Start()
{
AppTracking.StartTrackingAdjust();
}
public TrackingAdjust trackingStartGame;
void TrackingStartGame()
{
trackingStartGame.TrackEvent();
}
AppsFlyer Tracking
- Open tab
AppsFlyer
in Sunflower Control Panel to install AppsFlyer sdk and add define symbol
- Create
AppsFlyerSetting
and enter DevKey
- Create
Scriptable Tracking AppsFlyer
- Init start tracking appsflyer
private void Start()
{
AppTracking.StartTrackingAppsFlyer();
}
public TrackingAppsFlyerNoParam trackingStartGame;
void TrackingStartGame()
{
trackingStartGame.TrackEvent();
}