Storing original referrer in a field

I’d like to be able to store details about where a lead originally came from in a custom field. How would I do that?



It would be great to capture UTM parameters etc. too. Would it be possible to do something like this: http://www.terminusapp.com/blog/add-utm-referrer-lead-forms/

I’d like to be able to store details about where a lead originally came from in a custom field. How would I do that?

It would be great to capture UTM parameters etc. too. Would it be possible to do something like this: http://www.terminusapp.com/blog/add-utm-referrer-lead-forms/

I think your idea is similar to https://github.com/mautic/mautic/issues/449

Hi @escopecz
I believe the link you mentioned only focuses on adding tracking to links generated in or posted via Mautic.
I, on the other hand, am interested in picking up the referrer information, utm parameters etc. probably via a script in a cookie and then submitting it as a hidden field in the forms. This way it would be stored in a custom field and I’d be able to segment leads based on where they came from - and report on which sources perform the best.

I don’t think Mautic can do that. Your app will have to take care of sources the leads came from. You can save them in cookies or elsewhere. Mautic allows you to use hidden fields right now and you can fill it with any value you like. Then, with help of this feature waiting for merge to the core:

https://github.com/mautic/mautic/pull/906

you’ll be able to sort leads based on a form field value. Will that work for you?

Yes I didn’t expect Mautic to be able to handle the whole flow. It was also more to ask if others had tried something like this.
But yes with form field conditions in campaigns it should work.