Trying to figure out the best way of approaching a problem - we have a campaign landing page, we're aiming on only really having one to maintain, which has a form on.
What we'd like to do is be able to say for each person who visits the page where they come from, and if they complete the form to be able to associate that to the submission.
I was thinking there is probably something I could do with visitor groups for the first part, but was a little unsure how to achieve this with the second part - as ideally we'd like to be able to report that by email which we capture.
Are you using WebForms or MVC?
For WebForms an event is fired on the XForm control when the form is submitted. For MVC you can specify an action to post to instead.
Have a look at this blog post :