/// <summary> /// Constructor. /// </summary> public RudderAnalyticsManager() { // to make it work along with AM or other SDK that uses SQLite RudderClient.SerializeSqlite(); //Get access to RudderClient singleton instance //The writeKey used here is a sample one generated by the Rudder Labs //development team. For Production, the Torpedo development team //can retrieve the writeKey from the management web interface and embed //in WynnAnalyticsDataConstants.cs RudderConfigBuilder configBuilder = new RudderConfigBuilder() .WithEndPointUrl(WynnAnalyticsDataConstants.RUDDER_END_POINT_URL) .WithFactory(RudderAdjustIntegrationFactory.getFactory()); rudder = RudderClient.GetInstance( WynnAnalyticsDataConstants.RUDDER_WRITE_KEY, configBuilder.Build() ); //rudder.enableLog(); //Logging is disabled by default //There is no requirement for specifying Amplitude key since same //is configured at Rudder server end //Since Rudder SDK supports multiple destinations with different user_id //connotations, hence Rudder does not set user_id at instance level //It can be included in individual event calls to pass on to Amplitude //Same has been incorporated in code below GameEngine.DebugMsg("RudderAnalyticsManager: Initialized"); }