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
Kommentare
5 Kommentare
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, thedocument.referrerproperty could potentially be helpful for you to prevent sessions from being captured if thedocument.referrerproperty 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'sFullStorydictionary, add aRecordOnStartkey, of type Boolean, with a value ofNOor0. If you’re on Android, you can setrecordOnStartflag tofalse, which will prevent data capture untilFS.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. 😊
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.