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) »
  • Split Contacts into even and odd Contact ID groups
Pages: [1]

Author Topic: Split Contacts into even and odd Contact ID groups  (Read 531 times)

westy

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: CiviCRM 4.5.0
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.38
  • PHP version: Ubuntu Linux 12.04.3
Split Contacts into even and odd Contact ID groups
July 08, 2011, 07:25:47 am
Why would you want to do that?
A common tool for measuring the effectiveness of your emails is to send half the recipients the mail in 'Format A' and send the other half the 'Format B' version of the same message and then compare click-throughs.
There needs to be some degree of randomness in the selection so you couldn't, for example, use sign-up date to split the list in two (or more). Nor could you, for this purpose, use the demographic fields.
You could though use even and odd Contact ID to split the group into two and then add the odd ones to Group A and the others to Group B

Has anybody any ideas how to achieve this in practice?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Split Contacts into even and odd Contact ID groups
July 08, 2011, 08:01:56 am

how about using a custom search, maybe this one:

CRM/Contact/Form/Search/Custom/RandomSegment.php

would be even more powerful if we can send in some arguments from the mailing to the custom search (and say things like: gimme 20% of the contacts, but dont include contacts who've already recd mailings A, B, C)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

westy

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: CiviCRM 4.5.0
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.38
  • PHP version: Ubuntu Linux 12.04.3
Re: Split Contacts into even and odd Contact ID groups
July 08, 2011, 08:26:47 am
Brilliant idea, why didn't I think of that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Split Contacts into even and odd Contact ID groups

This forum was archived on 2017-11-26.