Summary of the comments so far is that the main features/changes needed are:

CommentFileSizeAuthor
#17 gdpr_simplenews-8.x-1.x-dev.tar_.gz7.11 KBAnonymous (not verified)
#14 gdpr_simplenews-8.x-1.x-dev.tar_.gz6.22 KBAnonymous (not verified)

Comments

crmart created an issue. See original summary.

berdir’s picture

Can you list what kind of features you'd expect exactly for that? Obviously a way to display the consent message/form, do you also see a need on the storage/admin UI? We might need to store when exactly a user subscribed to a certain newsletter for example.

We don't have any specific plans at the moment as most of our sites aren't using the simplenews module (anymore), but others might be interested too in financing/funding it (get in touch with us if anyone is interested).

Anonymous’s picture

Could this maybe make use of/integrate with the GDPR module, especially the GDPR_Consent submodule?

crmart’s picture

The GDPR law sais that the user has to consent that they allow the entered data to be stored and used by the party asking for it.

Example:

If a user fills in his/her emailadress in a form to subscribe to a newsletter, there should be a disclaimer in the form that indicates what the data will be used for (so in this case it would be used to send newsletters to the emailadress) and also if the user agrees that his/her data will be stored. The user could agree by checking a checkbox (which has to be OFF by default).
If the checkbox is NOT checked when submitting the form, then actually nothing should happen and the entered data will not be saved. In this case a message could be shown that the user disagreed with the disclaimer so he/she is not subscribed to the newsletter.

I hope my explanation is clear, if not, feel free to ask for more details!

Kind regards

berdir’s picture

Right. And adding a setting for a text to show below the various subscription forms isn't too complicated.

But I think it's more than just initially displaying that form. That consent must also be stored together with the date and IP so that if someone asks you why he receives the newsletter, you can inform him about when he exactly gave consent. That means we would need to extend the storage to be able to store that for each subscription a use has (which is a special field item/type of the subscription entity)

garyg’s picture

Most of what GDPR requires can be accomplished already with good practices when using simplenews.
The one requirement that we need from simplenews is keeping evidence of consent—who, when, how.

Keeping evidence of consent means that you must be able to provide proof of:
Who consented
When they consented
What they were told at the time of consent
How they consented (e.g., during checkout, via Facebook form, etc.)
Whether they have withdrawn consent

This evidence of consent could be handled by a periodic "Consent Confirmation" email blast.
By adding this feature to simplenews we could keep simplenews GDPR compliant.

Logging the evidence of consent into simplenews during opt-in might be reasonable in the future.

General Data Protection Regulation goes into effect on May 25, 2018
Anyone providing services to EU residents needs to comply with this law

miro_dietiker’s picture

Not only this. As of gdpr, revoking consent needs to be as simple as providing consent.

And one problem is that the right to be deleted is in conflict with an explicit unsubscribe. We need to persist data such an unsubscribe and make sure we do no lt accidentally sign them up again on an import. We would need to keep hashed records (at least hash the mail address on delete and always check hashed records as well) to fulfill both at the same time.

Is the gdpr_consent module offering a consent storage for such tracking?

Multiple of these things were identified previously, but no one was willing to make it happen. I‘d be happy to work on this, but as Berdir pointed out, we currently have no economic incentive to fulfill this deadline.

Anonymous’s picture

I guess the gdpr_consent module would work fine, as you define the agreement, and then somehow it should keep track of consent.

However, added the gdpr_consent field to a simplenews subscription form caused an error:

exception 'Exception' with message 'Could not determine user ID for entity type simplenews_subscriber. Please ensure there is a resolver registered.'

https://www.drupal.org/project/gdpr/issues/2972042

miro_dietiker’s picture

Hm.. Simplenews subscribers are not necessarily related to a drupal user account. Instead a subscriber could represent a person standalone.
Maybe the gdpr module is too much Drupal core user account centric? That though would only cover subscribers that registered.
In most cases though Simplenews subscribers don't have a user.

Anonymous’s picture

Yes, there seems to be more work needed on gdpr_consent to make it work with anonymous users.

But I don't see why it could not use the email address as identifying information, and store the consent for email addresses in a way similar to users.

Anonymous’s picture

If I understand this right, at the moment gdpr_consent only provides a ConsentUserResolver, linking consent to user entities. So for each user you can get the agreements this user has consented to.

To get this to work for subscribers we probably would need to implement a ConsentSubscriberResolver and all that is needed to get this to work. I might give it a try during this week.

candelas’s picture

It would be also necessary for Drupal 7. Thanks for your work :)

Anonymous’s picture

Here is a first attempt to get this to work for simplenews subscribers. Right now it is packed in its own little module, but it depends on gdpr_consent.

Although, in a way it would be better to separate gdpr_consent into two modules, but that's for the issue queue there: a module handling the agreements, and another one gdpr_user_consent handling the consent part. Here, we only need the part handling the agreement.

I did not do thorough testing, but was able to subscribe to a newsletter as anonymous user, and then as admin I can review the subscriber and see that the GDPR box is ticket, and the agreement displayed. It would be nice to also see the date it was agreed to though.

Anonymous’s picture

StatusFileSize
new6.22 KB
mgstables’s picture

Oh that's so great. I want to test it, but unfortunately, most of my site's with Simplenews are still in Drupal 7. Is there also a way to get it for Drupal 7? There is a GDPR Consent module for Drupal 7. Maybe it works with that to?

Anonymous’s picture

There is still a problem with the module, as it doesn't save the subscriber entity id in the message__subscriber table. It only stores the value of the GDPR consent field...

So still some work needed.

Anonymous’s picture

StatusFileSize
new7.11 KB

The attached module now saves the message correctly. I created a new message template different from the one that comes with gdpr_consent.

The problem was also that on filling in the subscription form, we do not yet have the subscriber_id. So once the subscription is confirmed the confirmation of the agreement is logged via the message module.

It's possible to create a view display based on the existing view block that gdpr_consent creates and use a contextual filter on subscriber_id to get the agreements a subscriber agreed to.

This module could probably do with a little more work. I also don't know if it is better to keep it as a separate module or to integrate it as a submodule into simplenews. Opinions on that?

If it should be a submodule of simplenews, it could be turned into a patch.

mgstables’s picture

Thanks Andreas, for your quick and hard work on this.
I tested the module from #17 on a developer site in Drupal 8.5.3
It worked nicely. First i had to search a little, because i never used the GDPR module.
But now it displays on the subscriber block, and once the subscriber confirms, it's connected to the subscriber.
I edit the view of the subscribers (/admin/people/simplenews) and put there the field that i created in the subscriptionform.
Title of the consent-message plus date/time are shown. Perfect. (sorry for my poor English)

If that could also be done in Drupal 7, that would be great.

Anonymous’s picture

I don't think the gdpr_consent module is part of the D7 version of GDPR. This module depends on gdpr_consent - the part that manages the agreements. As long as that hasn't been backported to D7, it will not be possible to backport this module to D7.

I also doubt I would have time to do the backporting, unfortunately.

Anonymous’s picture

For now I created a sandbox project here: https://www.drupal.org/sandbox/andreasspeck/2973749

I'd be happy to merge this as a submodule into the main simplenews repo. If people think it is better to keep it separate, I'd convert it to a full Drupal project.

miro_dietiker’s picture

Issue tags: +Needs tests

Adding such a functionality to Simplenews seems feasible. However we have a strict requirement for test coverage for every new features or bug resolved. Otherwise we can't maintain stability.

Anonymous’s picture

OK. I'll try to add the tests once it gets more quiet (GDPR!). I opened an issue assigned to myself on the sandbox project. Patches welcome.

anybody’s picture

Issue summary: View changes

Well just a different, perhaps simpler solution or workaround:
Wouldn't it simply be engough to add a required boolean field in the field administration: "/admin/config/people/simplenews/settings/subscriber/fields"?

We've solved it this way for us now... As result a user has to give its consent in the form.

Anonymous’s picture

I think there are many ways to try to be GDPR compliant.

The good think about using the functionality of the GDPR module is that it allows you to track which version of a consent agreement they consented to. So, for example, if you make a change that you think requires to seek new consent, you would probably be able to do so (not 100% sure yet how - possibly a subscription renewal form or something to update a subscriber).

With a simple boolean field that would not be possible.

miro_dietiker’s picture

Here's another reminder about "deleting" VS hashing (anonoymize):
If you delete records, your counts change. Instead hashing a record identifier is a preferred approach. The counts and the consent records remain. IMHO with the requirement to proof consent, you should never delete.

adamps’s picture

Issue summary: View changes
adamps’s picture

Title: GDPR Compliance » [META] GDPR Compliance
Category: Feature request » Plan
Issue summary: View changes
Issue tags: -Needs tests

Changing this issue to a META plan - GDPR compliance will require various different features/extensions to implement in full.

adamps’s picture

Issue summary: View changes
adamps’s picture

Issue summary: View changes
adamps’s picture

Issue summary: View changes
adamps’s picture

Issue summary: View changes