GithubHelp home page GithubHelp logo

Comments (3)

xgouchet avatar xgouchet commented on July 23, 2024

Hi @8secz-johndpope ,
The tracking consent is mostly related to GDPR, where end users must give their consent to being tracked. The value you can pass in the initialize() or setTrackingConsent() methods reflect that. We don't create any UI at all, it's up to you to ask the user's consent in your own way.

The usual way we suggest is to start with PENDING when you don't yet know what the user asked, and then switch to GRANTED or NOT_GRANTED depending on the user's preference. While the consent is PENDING, we keep the RUM data locally and never upload them to Datadog, and only when the tracking is GRANTED do we upload them.

If you don't have yet a mecanism to ask the user's consent, you can just use GRANTED and the SDK will send all the tracking data to Datadog.

Regarding Debug builds, the SDK should work fine in debug too, but you can disable the SDK to prevent your Debug sessions to add noiose to your data if you want. You can definitely use Datadog in production of course, no issue there.

The OkHttp interceptor is required to get information about your network request and how they can impact the performance of your application.

from dd-sdk-android.

johndpope avatar johndpope commented on July 23, 2024

It seems the docs are specific to kotlin only for view fragment lifecycle. If you could spoon feed a Java snippet around step 5/6 or 7 that would be awesome around tracking of view fragments

from dd-sdk-android.

xgouchet avatar xgouchet commented on July 23, 2024

Hi @johndpope ,
Indeed the code snippet are all in Kotlin, but they all translate exactly as it is for Java.
If you cant to track fragment as Views, you can simply call the useViewTrackingStrategy(new FragmentViewTrackingStrategy()) method on your Configuration builder.

from dd-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.