Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third party cookie in the optout cookie iframe #12454

Closed
matomoto opened this issue Jan 16, 2018 · 3 comments
Closed

Third party cookie in the optout cookie iframe #12454

matomoto opened this issue Jan 16, 2018 · 3 comments
Labels
c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base.

Comments

@matomoto
Copy link

Please give a note to the optout cookie iframe if the optout cookie is a third party cookie. Most browsers today ignore third-party cookies.

I do not have a separate Matomo instance for each domain.

Supplementary question: What is the exact detection of the "piwik_ignore" cookie in the script code?
Maybe it's easier to offer a small setcookie Javascript.

@fdellwing
Copy link
Contributor

Well, it is not really a third party cookie. Your matomo site sets and checks this cookie. None of the common browsers blocks that with default settings.

We use our matomo instance currently for over 20 different domains.

@matomoto
Copy link
Author

matomoto commented Jan 17, 2018

One cookie opted out 20 different domains. That is not in the sense of the inventor.

I have don't understand the optout cookie check in the Matomo files. In Google Analytics is this simple.

The Google Analytics Browser Addon saved a function in the HTML document, if the Browser Addon is installed. Then, the analytics.js check if the function is exist in the HTML document.

Google Analytics Browser Addon sourcecode

(function() {
    var a = document.createElement("script");
    a.type = "text/javascript";
    a.innerText = 'window["_gaUserPrefs"] = { ioo : function() { return true; } }';
    document.documentElement.insertBefore(a, document.documentElement.firstChild);
})()

analytics.js sourcecode
G=function(a){var b=F._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===F["ga-disable-"+a])return!0;try{var c=F.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(g){}a=[];b=Ea.cookie.split(";");c=/^\s*AMP_TOKEN=\s*(.*?)\s*$/;for(var d=0;d<b.length;d++){var e=b[d].match(c);e&&a.push(e[1])}for(b=0;b<a.length;b++)if("$OPT_OUT"==decodeURIComponent(a[b]))return!0;return!1};

The first function can use independently over a independently cookie. If this independently cookie exist, than start the function. But, the start from the function is no necessary.

For an optout neither Matomo (Piwik) nor Google Analytics is needed.

I use yet a independently optout cookie for each domain: https://www.penultima.de/opt/matomo.php
But, i will understand the optout cookie check in Matomo.

@Findus23 Findus23 added the c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base. label May 24, 2020
@mattab
Copy link
Member

mattab commented Jan 4, 2024

Thanks for your patience with this issue. We believe this has been resolved since. To ensure you have the fix, please update to the latest version of Matomo. If the issue persists after the update, don't hesitate to reopen this issue and let us know. Cheers!

Doc: https://fr.matomo.org/faq/general/faq_20000/

@mattab mattab closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Documentation For issues related to in-app product help messages, or to the Matomo knowledge base.
Projects
None yet
Development

No branches or pull requests

5 participants