Example #1
0
    public void LogEvent(string EventName, string par1, string par2)
    {
        Amplitude amplitude = Amplitude.Instance;

        amplitude.trackSessionEvents(true);
        amplitude.useAdvertisingIdForDeviceId();
        amplitude.init(ApiKey);
        amplitude.logEvent(EventName);
        amplitude.setUserProperty(par1, par2);
        amplitude.uploadEvents();
        Debug.Log(amplitude.getSessionId());
    }