# How to add forms with landing pages

**URL:** https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784
**Category:** Product Support
**Created:** [October 30, 2023, 7:16am UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784 "2023-10-30T07:16:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![neependra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/neependra/32/10787_2.png) [@neependra](https://forum.mautic.org/u/neependra)
#### Post date: [October 30, 2023, 7:16am UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/1 "2023-10-30T07:16:44Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 7.4  
My Database type and version is: 15.1 Distrib 10.3.38-MariaDB

**Your problem**  
My problem is:  
I am trying to figure out how we can create landing pages, which can collect information from the users.

From [GrapesJS Demo - Free Open Source Website Page Builder](https://grapesjs.com/demo.html) , I got the basic idea to create the page but am unsure how to insert a form in this (after replicating the design inside the landing page code editor) .

Any pointers would be of great help.

Thanks.

---

<div class="post-metadata">

### Author: ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)
#### Post date: [October 30, 2023, 10:03am UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/2 "2023-10-30T10:03:54Z")

</div>

Hi @neependra,

Welcome to the Mautic forum.

I believe these are two different situations, so let’s address them individually:

To add a form to a Mautic landing page, you need to use the variable “{form=ID}”, as shown in this example:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4ee2bc53178a9c42a6141b7725f63e279b01bbc8.png)

In the “Components \> Forms” section, you can find all the forms you’ve created, and there is a column with the ID. Use that ID to apply the form to your landing page.

* * *

To collect data from users, you can use the Google Analytics tag on your specific landing page. You can place the GA script in either the head or footer.

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fe84a717e97b166ab847bf799708b6bbb67636a8.png)

You need to be familiar with the Google Analytics platform to do this, but it’s not too difficult. There are plenty of tutorials on YouTube that can guide you on how to create a GA account and how it works.

I hope this information is helpful to you.

Best regards,  
Ricardo Freire

---

<div class="post-metadata">

### Author: ![neependra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/neependra/32/10787_2.png) [@neependra](https://forum.mautic.org/u/neependra)
#### Post date: [October 30, 2023, 1:49pm UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/3 "2023-10-30T13:49:45Z")

</div>

Thanks for your response.

> [@ricfreire](#):
>
> “{form=ID}”,

Can I use this If I use GrapeJS editor?

---

<div class="post-metadata">

### Author: ![neependra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/neependra/32/10787_2.png) [@neependra](https://forum.mautic.org/u/neependra)
#### Post date: [October 30, 2023, 1:51pm UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/4 "2023-10-30T13:51:25Z")

</div>

> [@ricfreire](#):
>
> To collect data from users, you can use the Google Analytics tag on your specific landing page. You can place the GA script in either the head or footer.

I want to collect the form data that the users are going to fill out. Can I get with Google Analytics tag ?

---

<div class="post-metadata">

### Author: ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)
#### Post date: [October 30, 2023, 2:07pm UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/5 "2023-10-30T14:07:08Z")

</div>

Yes. For Landing Pages only, not emails.

---

<div class="post-metadata">

### Author: ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)
#### Post date: [October 30, 2023, 2:13pm UTC](https://forum.mautic.org/t/how-to-add-forms-with-landing-pages/29784/6 "2023-10-30T14:13:14Z")

</div>

When users fill out a form in Mautic, you can easily review their data without the need for Google Analytics

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6568bc1383708e60099e2910c9d4e75edc46f1bd.png)

To access this information, go to ‘Components \> Forms’ and select the specific form you’re interested in. If you already have results, simply click on ‘View X Results,’ as shown in the example.

I mentioned Google Analytics as a solution for tracking the number of visitors to your landing page and monitoring their clicks, if you have properly configured events.
