CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • How to send mailings to recipients who opened and/or clicked?!
Pages: [1]

Author Topic: How to send mailings to recipients who opened and/or clicked?!  (Read 831 times)

Kampaweb

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
    • Campaignforum
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.3
How to send mailings to recipients who opened and/or clicked?!
July 12, 2010, 06:07:14 am
Hi there

We do have a 3.1.5 Installation here and we'd like to create mailings based on criteria such as:

- all recipients who did or who did not open a previous mailing
- all recipients who did or who did not click an embedded link in a previous mailing

I think such a thing would be possible with the "CRM_search_mail_ID_clicktrough"?! Is this correct? Or is there another way to achieve this?

Unfortunately we cannot test this feature (CRM_search_mail_ID_clicktrough), because all we get is the following error:
Code: [Select]
warning: include_once(CRM/search/mail/ID/clicktrough.php) [function.include-once]: failed to open stream: No such file or directory in /kunden/207524_6900/test/mein.kampagnenforum.ch/sites/all/modules/civicrm/CRM/Contact/BAO/SearchCustom.php on line 77.
warning: include_once() [function.include]: Failed opening 'CRM/search/mail/ID/clicktrough.php' for inclusion (include_path='.:/kunden/207524_6900/test/mein.kampagnenforum.ch/sites/all/modules/civicrm:/kunden/207524_6900/test/mein.kampagnenforum.ch/sites/all/modules/civicrm/packages:.:/usr/local/lib/php') in /kunden/207524_6900/test/mein.kampagnenforum.ch/sites/all/modules/civicrm/CRM/Contact/BAO/SearchCustom.php on line 77.

Are there any suggestions what we could do to either resolve this issue and/or make a selection of a mailing's recipients based on their open/click-rate.

Thanks and all the best from Zurich
Roman
We passionately provide NPOs in Switzerland, Germany and Austria with the means to campaign succesfully.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to send mailings to recipients who opened and/or clicked?!
July 12, 2010, 09:04:08 am
Hi,

Not by default to my knowledge, but you can create a custom search that searches based on the clicks/opened

http://en.flossmanuals.net/CiviCRM/DevelopCustomSearches

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: How to send mailings to recipients who opened and/or clicked?!
July 12, 2010, 01:42:36 pm
If you have some SQL knowledge:

Code: [Select]
SELECT DISTINCT e.contact_id FROM
civicrm_mailing_event_opened eo
JOIN civicrm_mailing_event_queue eq ON eo.event_queue_id = eq.id
JOIN civicrm_mailing_job mj ON eq.job_id = mj.id
JOIN civicrm_mailing m ON mj.mailing_id = m.id
JOIN civicrm_email e ON eq.email_id = e.id
WHERE m.id = [mailingid]

You can run another query to put the result set in a group, I have a module that let's you select a mailing and put the people who opened the emails to a group. I'll probably release it somewhere if it generate some interests.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to send mailings to recipients who opened and/or clicked?!
July 12, 2010, 11:11:12 pm
Nice,

I'd suggest to use that SQL to write a custom search, not that difficult, and it provides more flexibility on the actions you can do with the result (export, create a smart group...)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • How to send mailings to recipients who opened and/or clicked?!

This forum was archived on 2017-11-26.