Add campaign monitor to add webform?
djmystic82 - February 13, 2009 - 10:50
| Project: | Campaign Monitor |
| Version: | 6.x-2.2 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | ssherriff |
| Status: | active |
Jump to:
Description
Is it possible to add the campaign monitor to a webform like you can add it to the user registration?

#1
At the moment the module gives you the possibility to have a checkbox on the registration page and/or the contact page.
#2
Both the contact page and the registration are pretty kludgey in their implementation. Webform allows you to change the URL, redirect page and a number of other features.
I was also under the impression that we could add various fields to match segments with this module.
#3
Since this functionality doesn't existing, I'm changing this to a feature request.
#4
i would also be intersted in this
#5
I'm also interested. It's a much requested feature that clients have.
Right now I'm filtering csv results from webform submissions and importing those manually in Campaign Monitor.
#6
Ok, as several people have asked for this, I will have a look at including this in the module.
#7
With this feature request, could someone who has more experience using webforms help define the actual feature request a bit more. Did you just want the capability to add a newsletter or newsletter checkboxes to the bottom of the form, or did you want some other more complicated way of actually having a specific 'campaignmonitor' field that can be added to forms. I'll have to do a bit more research to get this one right, so any information someone might want to provide will definitely help.
Cheers
#8
@ssherriff I see a simple checkbox as being sufficient. The more challenging aspect of the integration will be selecting which fields contain the name and email address to be sent to Campaign Monitor. IMO, any further webform related feature requests should be filed as separate issues at a later date.
#9
The captcha module might be worth looking at as this adds itself to any form.
#10
Checkbox(es) to indicate which list(s) to subscribe, and a way to indicate which fields should also be sent would be a good thing.
BTW, for those looking for a right now implementation, I figured out a (somewhat cludgy) way to do it with Additional Processing. Let me know if there's interest, and I'd be happy to share! :)
#11
Hey,
I would definitely be interested, been trying to work this out for the last couple of days with no luck.
-- Christian
#12
@epersonae2 You are welcome to share your solution, no matter how cludgy it is.
#13
OK, here's what I've got. It's not on a production site yet, so I can't say if there's anything weird that might happen with more visitors.
This code, including the PHP tags, goes in Additional Processing. I used the Create a subscribe form feature in Campaign Monitor to get the value for the field names and the url to submit.
<?php
//get the email address and any additional fields
$content['email-field-name-from-campaignmonitor'] = $form['submitted']['your_email_field']['#value'];
$content['additional-field-name'] = $form['submitted']['your_additional_field']['#value'];
//send data to the form
$url = 'http://yourcampaignmonitorsubscribeformurl.com';
$headers = array('Content-Type' => 'application/x-www-form-urlencoded; charset=UTF-8');
$data = http_build_query($content, '', '&');
$req = drupal_http_request($url, $headers, 'POST', $data);
?>
I hope this is helpful!
#14
@epersonae2 Thanks for that. Works wonderfully. Good stufF.
#15
From a marketeers perspective (I'm not a coder) but I use Drupal for my clients.
I use the webforms for capturing visitors data. If I could send the following data
name, email, tel - the usual stuff
plus and this is what I really could do with - is a menu list that can be used to segment the user in to a subscibers list within Campaign Monitor. You can identify each subscriber list by using the API Subscriber List ID (found in the admin area of CM)
Not sure how it can be done but you'll need to replicate the subscribers list in Campaign Monitor with the list in webform.
This would be very interesting and I could possibly fund some development time. If anyone is interested.
#16
This would imply being able to pass the value of webform or CCK fields to Campaign Monitor.
I agree, it's a really importanrt way of adding subscribers to the proper segments.
#17
This is something I'm looking for as well.
All I'd want is an option to be able to add them to the existing webforms. In terms of UI, I'd have the same UI you've already got for Contact and Registration checkboxes, but add a list of existing webforms to those 2 items. So you'd just turn it on or off there. Make sense?
Thanks,
Nick
#18
Yeah, I think it is harder then that though because people will probably have form elements on their webform that they want to use to fill custom fields (including the Name field). So really I'd have to possibly get the available webforms, plus the fields available and enable mapping. That might be complicated.
Any hints/tips by people who have experience with webforms are greatly appreciated at this point.
Cheers,
Stephanie
#19
Maybe team up with http://drupal.org/project/emf there's some great mapping options in there.