I'd like to capture the sign-up form path used when a user subscribes. What's the best way to do it?

One idea:

1. In Mailchimp: Create a hidden merge field to track signup path path.

2. In Drupal: add the hidden field to a signup form.

3. Use a form alter with something like request_path() to populate hidden field.

However, I can see the Mailchimp module has evolved considerably since I last looked (nice work!) so I want to make sure I'm not missing something more elegant.

Comments

dave bruns created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Fixed

@dave bruns I would go with (1), if you want the data populated in Mailchimp. Seems like a good use case for merge vars, since you could filter a list based on where the sign up happened! Please open a new issue if you have any other questions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.