-
Notifications
You must be signed in to change notification settings - Fork 2
Tracking
VirtueSky edited this page Sep 8, 2024
·
8 revisions
(Note: From version 1.3.4, will use scriptable to tracking)
- Install Firebase Analytics and add define symbols
- Create scriptable tracking firebase from sunflower control panel
(or
right click
->Sunflower2
->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
andParameter 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);
}
- Open tab
Adjust
in Sunflower Control Panel to install adjust sdk and add define symbol - Create
AdjustSettings
and enterAppToken
- Create
scriptable tracking adjust
- Init start tracking adjust
private void Start()
{
AppTracking.StartTrackingAdjust();
}
- Tracking event
public TrackingAdjust trackingStartGame;
void TrackingStartGame()
{
trackingStartGame.TrackEvent();
}
- Open tab
AppsFlyer
in Sunflower Control Panel to install AppsFlyer sdk and add define symbol - Create
AppsFlyerSetting
and enterDevKey
- Create
Scriptable Tracking AppsFlyer
- Init start tracking appsflyer
private void Start()
{
AppTracking.StartTrackingAppsFlyer();
}
- Tracking event
public TrackingAppsFlyerNoParam trackingStartGame;
void TrackingStartGame()
{
trackingStartGame.TrackEvent();
}