Track Screen & Elements
2 min
this function allows the sdk to monitor user navigation within your app by logging each screen view screen tracking enables accurate data collection for analytics and campaign purposes note wrap each screen where you want to integrate appstorys elements we will auto discover the screen elements and display it on the dashboard for your integration to use, wrap the screen using \<appstorys screen name="screen name" options={{ // add custom padding for appstorys elements here }}> // your screen code \</appstorys screen> parameter name a case sensitive name representing the screen this name should match the names provided to appstorys during integration options this is optional if you want to add padding to the appstorys elements to match your app's layout or to pass list of widget names inside options, you can pass positionlist a case sensitive list of strings representing the positions of the widgets, so that multiple widgets can be identified and displayed overlaypadding it takes padding values for pip videos, floater, banner and csat these screens will then show on appstorys dashboard where you can then create campaigns according to the screens tracking individual elements on each screen to enable tooltip, coachmark, or spotlight campaigns on your app screens, each ui element must be uniquely identifiable assign a prop named appstorys="exampleelement" to every element for example \<view appstorys="exampleelement"> \<text>click me\</text> \</view> adding the appstorys prop ensures that the appstorys sdk can accurately detect and target this element when running campaigns