3

Is it possible to build a url to be included in an email sent from CiviCRM such that when the user clicks the link, they will automatically be tagged with a term in the system? Or maybe add an activity to their record? Basically I'm looking for a way to do a 1-click and done action to track some things in the system.

Forgot to mention I am using Drupal.

  • It would help if you specify your CMS since I can imagine that Drupal might offer some options eg, link back to a webform which user submits, result being user gets tagged. not quite one-click, but closer than civi offers out of the box – petednz - fuzion May 30 '17 at 19:52
  • Thanks, yes I am looking at the webform route as a worst case scenario, but was hoping someone had a cool one click solution. – Roland Snowe May 30 '17 at 22:59
  • Understood. We all hope for the Cool One Click Extension at times – petednz - fuzion May 31 '17 at 0:30
  • You could add a little js to the webform to make it autosubmit as soon as it's loaded. – Coleman Jun 2 '17 at 17:20
  • Could something be created with CiviEntity and Rules? Perhaps: The email has a link to a particular node and the URL includes a token for the contact's Civi ID. Then when that node is viewed, the Contact ID from the URL is fetched and then a tag is added to that Contact ID? – Allen Hutchison Sep 30 '17 at 23:21
1

I would do this with a Drupal webform as follows:

  • Contact 1 - current user (if not logged in you'd need a checksum)
  • Contact 2 - the person to be tagged - set this as "existing contact" prepopulated from the url.
  • The tag will have to be preselected in the webform, so you'd have do clone this webform for each tag you want.
  • Add a tiny bit of javascript to the form to make it auto-submit.
  • On submit, redirect or display a success message.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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