简体   繁体   中英

Can I know when Firefox Tracking Protection is turned on in javascript code?

I have an application running with Tealium. Some features of the platform doesn't work when I access in Firefox and the tracking protection is turned on (In "always" mood) .

I want to show an alert when the application detects Firefox tracking protection in mood "Always" to say "You have tracking protection activated and some features will not work in the platform" with java script.

Is there any way to do that?

You can do that by creating a new extension in Tealium, and then, in that extension, detect whether or not tracking protection is turned on in Firefox (here's SO on how to do that here ). You can then display a popup, initiate an ajax, or redirect to another page if tracking protection is turned on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM