Mautic Community Forums

Google Analytics data in Lead Fields

Hello.



Is there a way to store in a lead field the source data from Google Analytics?



How to use Wordpress, I thought of food a hidden form field. Is that possible?



Thank you for the excellent work!

Hello.

Is there a way to store in a lead field the source data from Google Analytics?

How to use Wordpress, I thought of food a hidden form field. Is that possible?

Thank you for the excellent work!

Hmm interesting question. In theory, possibly.

First step would be to create a custom field in Mautic to store the data. Then you’d need to embed your form manually on the page via html. Not so easy to do with a mautic landing page, but if you’re using a different CMS it shouldn’t be hard. Then you’d actually have to have some CSS hide that field, and inject values into it with javascript.

Probably not the most friendly way to do it but it would work, and I’m not sure there’s a better way to do it.

Hi,

I inserted code in field content. It’s right!

Hi @miltonmattos it sounds very interesting!

What code did you inserted in the hidden field to register the source data in the lead field?

Could you share an example of how you did?

Thanks!

I’d be interested in this too. Any feedback anyone?
Thanks

Nick

@nickwild, maybe this helps: https://github.com/mautic/mautic/issues/3106