Skip to content

Tracking

VirtueSky edited this page Sep 8, 2024 · 8 revisions

(Note: From version 1.3.4, will use scriptable to tracking)

Firebase Analytics Tracking

  • Install Firebase Analytics and add define symbols

Screenshot 2024-09-04 174221

Screenshot 2024-08-14 103345

  • Create scriptable tracking firebase from sunflower control panel (or right click -> Sunflower2 -> Tracking Event -> Firebase Analytic)

Screenshot 2024-02-28 152556

  • 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

Screenshot 2024-09-04 175512

  • Init start tracking adjust
    private void Start()
    {
        AppTracking.StartTrackingAdjust();
    }
  • Tracking event
    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

Screenshot 2024-09-04 175522

  • Init start tracking appsflyer
    private void Start()
    {
        AppTracking.StartTrackingAppsFlyer();
    }
  • Tracking event
    public TrackingAppsFlyerNoParam trackingStartGame;

    void TrackingStartGame()
    {
        trackingStartGame.TrackEvent();
    }
Clone this wiki locally