1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/PrivacyManager/tracker.min.js
Stefan Giehl eb1543097d Adds possibility to force cookie less tracking (#16592)
* Add system and measurable setting to enable cookie less tracking

* Never return a visitor id if cookieless tracking is forced

* Adds custom tracker.js to prevent cookies

* ignore exceptions

* cache setting in site attributes for faster tracking

* updates expected test files

* ensure getVisitorId also works without idSite in request

* fix js tests

* store global cookie flag in config to avoid failures when building tracker js

* use config instead of systemsetting

* use a new event to update the tracker file

* Fix handling in Request::getVisitorId()

* improve setting descriptions

* Revert "use config instead of systemsetting"

This reverts commit 1fdfb68084.

* Revert "store global cookie flag in config to avoid failures when building tracker js"

This reverts commit 2587dbb851.

* code improvements

* Reset storage to ensure it's not filled with invalid database objects

* updates expected test files

* Remove measurable setting again

* move setting from systemsettings to ip anonymization settings

* Show a warning if tracker file is not writable

* updates expected test file

* apply some review feedback

* fix test

* updates expected screenshot

* apply review feedback

* submodule update
2020-10-27 16:19:45 +01:00

1 خط
391 B
JavaScript
Generated

(function(){function a(){if("object"===typeof window&&!window.Matomo){return}window.Matomo.on("TrackerSetup",function(b){b.setCookieConsentGiven=function(){};b.rememberCookieConsentGiven=function(){};b.disableCookies()})}if("object"===typeof window.Matomo){a()}else{if("object"!==typeof window.matomoPluginAsyncInit){window.matomoPluginAsyncInit=[]}window.matomoPluginAsyncInit.push(a)}})();