DNT exception handling tracking

I am currently trying to solve a tracking issue.

On our website, the user should be able to decide whether he is being tracked and what information is being shared.

We also have another third party tracking mechanism that can also be disabled. (if user wants)

I solved this problem with local storage + cookies. If the user decides to disable one of our tracking, the code that is responsible for this type of tracking will not be transmitted through the requested file.

I also respect the settings with window.Navigator.doNotTrack, which will be in the case of beeing 1, are allowed in the eatery and ask permission.

All the information I found about this topic is here.

I want to know how to ask about the exception, as well as how to find out if the website is accepted or not.

I tried to describe here , but it does not work.

Navigator.trackingExceptionExists // will be undefined
+4
source share
2 answers

The DNT header header is a mechanism for expressing a preference for tracking a user in an HTTP request. No more than one DNT header field may be present in a valid request.

DNT-field-name = "DNT"

DNT-field-value = ("0" / "1") * DNT extension

  • The user agent MUST NOT generate a DNT header field if user tracking is not enabled.
  • DNT "1" , , DNT: 1, .
  • DNT , "0" , , - DNT: 0, .
  • - DNT, , , .

:

  • void storeSiteSpecificTrackingException ( StoreSiteSpecificExceptionPropertyBag)

    . storeSiteSpecificTrackingException StoreSiteSpecificExceptionPropertyBag, .

  • DOMString?

    cookie, .

  • DOMString? SiteName

    .

  • DOMString? explanationString

    .

  • DOMString? detailURI

    , .

  • DOMString?

    , , cookie, , .

  • ? MaxAge

    , .

  • arrayOfDomainStrings

    JavaScript. arrayOfDomainStrings, . arrayOfDomainStrings . storeSiteSpecificTrackingException . arrayOfDomainStrings, . , .

, ?, :

Navigator.storeSiteSpecificTrackingException

, :

Navigator.removeSiteSpecificTrackingException

removeSiteSpecificTrackingException. , , , - .

, ?, confirmSiteSpecificTrackingException - , :

boolean confirmSiteSpecificTrackingException (ConfirmSiteSpecificExceptionPropertyBag properties)

.

, , , :

Navigator.confirmSiteSpecificTrackingException
+1

navigator.confirmSiteSpecificTrackingException

https://msdn.microsoft.com/en-us/library/dn265021(v=vs.85).aspx

+2

Source: https://habr.com/ru/post/1689191/


All Articles