Can i stop data capture by checking PageRefererUrl?
New
I want to avoid data capture for certain partners redirecting to our app.Let me know how can i do this.
1
Comments
5 comments
Hi, @Suraj! đ Thanks for reaching out!Â
While there wouldn't be a way to block data capture based on the referrer URL out-of-the-box, you could consider using our FS.shutdown() and FS.restart() APIs. For example, some people call FS.shutdown() before the recordingÂ
</script>
 closes, insert conditional logic, and fire the recording script with FS.restart(). Without being familiar with your website, theÂdocument.referrer
 property could potentially be helpful for you to prevent sessions from being captured if the Âdocument.referrer
 property is your partners site. We would have to know a bit more about your site to provide specific recommendations, so please let me know if youâd like me to share this with our support team to take a deeper dive!I hope this helps and please donât hesitate to reach out should you have anymore questions! đ
Hi @lindsay, thanks for your answer here. Can we avoid starting a mobile app session entirely? We would like to use some criteria on our side (not IP, geolocation, or release variant) to block sessions from starting.
Hey @Abe! Thanks for reaching out!Â
By default, FullStory will automatically request a session and start capture on app startup. There are a few ways to achieve this depending on whether youâre on iOS or Android.
To prevent FullStory from capturing data on start if youâre on iOS, in your appâsÂ
Info.plist
'sÂFullStory
 dictionary, add aÂRecordOnStart
 key, of type Boolean, with a value ofÂNO
 orÂ0
. If youâre on Android, you can setÂrecordOnStart
 flag toÂfalse
, which will prevent data capture untilÂFS.restart()
 API is explicitly invoked.Please let me know if you have any other questions!Â
perfect thank you @lindsay! missed those in the docs
Not a problem, @Abe! Glad that helped! Please donât hesitate to reach out if you have any other questions. đ
Please sign in to leave a comment.