Problem/Motivation

Google Analytics supports an option to disable the default cookie storage. This option is useful for sites implementing their own storage mechanism (such as localStorage or a Service Worker) to persist the client ID across sessions without using cookies. By disabling cookies, EU sites have no obligation to ask for permission for tracking cookies.

More information about this option is available on https://developers.google.com/analytics/devguides/collection/analyticsjs...

Proposed resolution

Add a configuration option to the administration form to disable cookie storage and update the ga function accordingly.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

A new configuration option 'Disable cookies' is available under the configuration form vertical tab 'Privacy'.

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

idebr’s picture

Title: Add 'Disable cooking' privacy option » Add 'Disable cookies' privacy option
idebr’s picture

Issue summary: View changes
idebr’s picture

Status: Active » Needs review
StatusFileSize
new4.28 KB

Attached patch implements a configuration option 'Disable cookies' in the Privacy vertical tab on the configuration form and updates the tracking code accordingly.

  • hass committed b84cae8 on 8.x-2.x
    Issue #2804553 by hass: Support new create fields 'legacyHistoryImport'...

  • hass committed 95367cc on 7.x-2.x
    Issue #2804553 by hass: Support new create fields 'legacyHistoryImport'...

  • hass committed 2cad451 on 6.x-4.x
    Issue #2804553 by hass: Support new create fields 'legacyHistoryImport'...
hass’s picture

Title: Add 'Disable cookies' privacy option » Support new create fields 'legacyHistoryImport' and 'storage'
Version: 7.x-2.x-dev » 8.x-2.x-dev
Status: Needs review » Fixed

By disabling cookies, EU sites have no obligation to ask for permission for tracking cookies.

Are you personally changing the laws? You are not allowed to track a user with whatever technology exists without user confirmation.

I have added two new create fields.

idebr’s picture

Are you personally changing the laws? You are not allowed to track a user with whatever technology exists without user confirmation.

Heh, I guess I must only have heard it referenced as the 'cookie law' without actually looking into it, so I learned something new today :)

Thanks for the quick commit!

hass’s picture

Sure it is often named "cookie law" by press, but in reality it means tracking / later identification of customers without their confirmation. If you are able to identify users it is forbidden.

You do not expect that there is a written law that has written down the word "cookie", aren't you?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.