4

We're using Google Groups Sync to synchronize our members in CiviCRM with groups in Google Groups. However, if the user unsubscribes from the list using the Google Groups link, Google Groups Sync will automatically re-add them during the next sync cycle.

The solution, I believe, is to include the unsubscribe link CiviCRM would generate if the e-mail originated from CiviMail, but I can't work out how to generate that link.

Is it possible to generate an unsubscribe link manually, or generic enough to include in the footer of Google Groups messages?

2 Answers 2

3

I know I asked this question quite some time ago, but I thought I'd share the solution we landed on.

We found and tested two solutions that worked well. The first was using Tags:

  • Allow users to manage their tags
  • Create tags for the groups members can opt-in/out of
  • Create smart groups based on the membership status and tags
  • Sync the Google Group to the smart group for the associated tag

The second approach was very similar, but instead of using tags, we used a set of custom fields as checkboxes for each of the groups. We settled on this approach, because it allowed us more control over what was shown to the user and freed up tags for other uses.

1

I'm not familiar with Google Group Sync, but if the message is not coming from CiviCRM, I'm not seeing how you would include an individualized CiviCRM checksum (generated by a CiviCRM token) for each contact. As you say a generic link to allow anyone to unsubscribe is needed.

An option would be to include a link to a profile that allows people to manage their groups. Since this is a profile that works for anyone, no token is required. But the user would need to log in.

If contacts don't have user accounts or you don't want them to have to login, you could write an extension for the user to request a new link - similar to Pete's idea here: Can an expired checksum provide any warning to the user when they get to the site?

2
  • Thank you for the suggestion. I will take some time to look st this later today. I considered the profile, but couldn't find the group unsubscibe fields when creating the profile. I was hoping I could make an API call to CiviCRM with the checksum for the group, and allow the user to enter their email address, or login to complete the removal. Jun 5, 2016 at 13:07
  • Add the field Contacts > Groups to a profile, and all Mailing Lists groups that are available publicly will show up. You can then send the profile edit link to the contacts that want to change their subscription settings. Jun 5, 2016 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.