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! 😊

    0
  • 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.

    0
  • 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! 

    0
  • perfect thank you @lindsay! missed those in the docs

    0
  • Not a problem, @Abe! Glad that helped! Please don’t hesitate to reach out if you have any other questions. 😊

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post