Hello,
I would like to know how the detection of the Do Not Track status works in the Matomo optout iframe.
It reads the DNT-Request-Header information which is sent by the browser and delivers the correct content accordingly.
1 Like
Have found it.
What is â$_SERVER[âHTTP_X_DO_NOT_TRACKâ]â?
"$_SERVER[ââŚâ]" I know, but what is this âHTTP_X_DO_NOT_TRACKâ?
A search on the internet did not yield a result with an answer.
I am not sure what you mean, but donottrack just makes the browser add a single http header (âDNT:1â) to every request it sends.
You can detect it in php with Ë(isset($_SERVER[âHTTP_DNTâ]) && $_SERVER[âHTTP_DNTâ] == 1);Ë (HTTP_X_DO_NOT_TRACK is just an ancient variant that is kept for backwards compatibility reasons)