最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

enable and disable iOS App tracking for 3rd party like Dynatrace using App Tracking Transparency - Stack Overflow

programmeradmin0浏览0评论

I have integrated Dynatrace for tracking user session in my React Native app. And have added ATT so when I deny tracking form ATT pop-up, Dynatrace is still tracking the session details, all mobile action and username. How can I solve this? I want when I allow ATT dynatrace should capture and when deny it should not.

 let privacyConfig = new UserPrivacyOptions(DataCollectionLevel.Off, true);
    requestTrackingPermission()
      .then((trackingStatus) => {
        if (trackingStatus === "authorized") {
          console.log("Access granted");
        } else {
          console.log("Access revoke");
          Dynatrace.applyUserPrivacyOptions(privacyConfig);
        }
      })
      .catch((error) => {
        console.error("Tracking Permission Error", error);
      });

I have added this additional code but its not working as in ATT pop-up u allow or deny its taking Access revoke only.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论