Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
samuel.mortenson@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.