Data Whimsy
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum

Cookies

3/22/2024

0 Comments

 
Do you want to see cookies appearing and disappearing, and expiry times changing, in your browser?

For setting Cookie Consent (this is the yes/no after a visitor clicks your "accept all cookies" banner):
  1. Open a page which has Matomo tracking (the normal JS tracker)
  2. In Devtools >> Console, do the following _paq.push(['rememberCookieConsentGiven']);
  3. (in devtools >> storage/cookies see the expiry date of the mtm_cookie_consent cookie is very far in the future)
  4. In the console again _paq.push(['rememberCookieConsentGiven', 47]);
  5. (in devtools >> storage/cookies see the expiry date of the mtm_cookie_consent cookie is now two days in the future)

There is an entire parallel process for tracking in general (not just cookies).  Repeat every line above the same but remove the word cookie from methods in push.

Links
Easy: https://matomo.org/faq/new-to-piwik/how-can-i-still-track-a-visitor-without-cookies-even-if-they-decline-the-cookie-consent/
More detail: https://developer.matomo.org/guides/tracking-consent
List of most of the cookies: https://matomo.org/faq/general/faq_146/
List of some innocent cookies: https://matomo.org/faq/general/faq_157/
ALL 200 JS METHODS FOR THE CONSOLE: 
https://developer.matomo.org/api-reference/tracking-javascript
0 Comments



Leave a Reply.

    Troubleshooting + Deploying Matomo

    Archives

    December 2024
    July 2024
    April 2024
    March 2024
    February 2024
    November 2023
    October 2023

    Categories

    All

Powered by Create your own unique website with customizable templates.
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum