# Google Analytics data in Lead Fields

**URL:** https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685
**Category:** Product Support
**Created:** [March 22, 2015, 12:32am UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685 "2015-03-22T00:32:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lkelmann](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@lkelmann](https://forum.mautic.org/u/lkelmann)
#### Post date: [March 22, 2015, 12:32am UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/1 "2015-03-22T00:32:35Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![lkelmann](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@lkelmann](https://forum.mautic.org/u/lkelmann)
#### Post date: [March 22, 2015, 12:32am UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/2 "2015-03-22T00:32:35Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)
#### Post date: [March 22, 2015, 7:00pm UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/3 "2015-03-22T19:00:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![miltonmattos](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@miltonmattos](https://forum.mautic.org/u/miltonmattos)
#### Post date: [October 23, 2015, 1:43pm UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/4 "2015-10-23T13:43:07Z")

</div>

Hi,

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

---

<div class="post-metadata">

### Author: ![seti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/seti/32/6477_2.png) [@seti](https://forum.mautic.org/u/seti)
#### Post date: [October 23, 2015, 6:53pm UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/5 "2015-10-23T18:53:08Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![nickwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nickwild/32/85_2.png) [@nickwild](https://forum.mautic.org/u/nickwild)
#### Post date: [September 3, 2017, 4:29pm UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/6 "2017-09-03T16:29:36Z")

</div>

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

Nick

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [September 5, 2017, 9:55am UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/7 "2017-09-05T09:55:44Z")

</div>

@nickwild, maybe this helps: [https://github.com/mautic/mautic/issues/3106](https://github.com/mautic/mautic/issues/3106)

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/google-analytics-data-in-lead-fields/1685/8 "2020-02-02T22:57:34Z")

</div>


