Initialize the SDK
1 min
call initialize as early as possible in the app’s lifecycle, ideally during the startup process appstorys initialize( "your app id", "your account id", "your user id", (screenname) => { console log(screenname); // use this screenname to navigate inside your app } ); to structure deep links for your app pass a callback function as a parameter in initialize() when a campaign triggers a deep link the sdk reads the configured page name the sdk returns that value in the callback you handle navigation inside your app using the screenname parameters \ your app id your unique application id from the appstorys dashboard \ your account id your unique account id from the appstorys dashboard \ your user id your unique user id for the user if the user id is not available at the moment, you can leave this empty once the user id is obtained, you can provide it later using the setuserid() function