• Resolved MrMattEastwood

    (@mrmatteastwood)


    Hello, Matomo team!

    I’m wondering what the best way is to implement the advice from your article “How do I track a visitor without cookies when they have not given consent for tracking cookies?” when using this plugin?

    The article says to add this line to the tracking code:

    _paq.push(['requireCookieConsent']);

    When clicking “enable tracking” on the “Get Started” page, I don’t get an option to add this code snippet.

    The only way I could find was to go to Settings > Tracking, copy the JavaScript tracking code from the text field toward the bottom of the page, manually add the snippet there and then use the option “Manual entry” in the dropdown menu at the top of that same page to add the modified tracking code.

    Is this the correct/best way to do it, or did I miss an option in the plugin that allows me to enable cookie-less tracking without manually editing the code?

    Thanks!
    Matt.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas

    (@tsteur)

    Hi @mrmatteastwood

    Setting the option to “Manual entry” in the dropdown is indeed the best option for this case. We don’t have a feature yet that lets you add this method to the tracking code unfortunately and I created an issue in https://github.com/matomo-org/wp-matomo/issues/405

    If you don’t want any cookies to be used at all, then you can also simply select the “Disable cookies” option.

    Does this help @mrmatteastwood ?

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hey Thomas, thanks for your quick reply, and for opening the bug report/enhancement. I just subscribed to it.

    I wasn’t aware of the “disable cookies” function, thanks for pointing me to it! This is good to know. It’s “Force tracking without cookies” in “Anonymize data”, correct?

    I’m presuming activating this will mean we lose some functionality or accuracy in tracking?

    Happy new year 🙂

    Plugin Author Thomas

    (@tsteur)

    Happy new year @mrmatteastwood 🙂

    We have an FAQ regarding what will be less accurate here: https://matomo.org/faq/general/faq_156/

    It does indeed basically the same as “Force tracking without cookies” in “Anonymous data”.

    Let me know if anything is unclear and we’ll be happy to help.

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hello Thomas,

    Thanks again, this answers my question perfectly.

    Kind regards,
    Matt.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Tracking without cookies?’ is closed to new replies.