# How to connect Mautic with google tag manager?

**URL:** <https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597>\
**Category:** General Discussion\
**Created:** [November 13, 2021, 6:56am UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597 "2021-11-13T06:56:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammad01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mohammad01/32/543_2.png) [@mohammad01](https://forum.mautic.org/u/mohammad01)\
**Post date:** [November 13, 2021, 6:56am UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/1 "2021-11-13T06:56:40Z")

</div>

Hi everyone  
I recently installed Mautic 4.0.1 and I would to know how to connect Mautic to Google Tag Manager?  
Is there any document?  
thanks.

---

<div class="post-metadata">

**Author:** ![ledzee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ledzee/32/4252_2.png) [@ledzee](https://forum.mautic.org/u/ledzee)\
**Post date:** [November 14, 2021, 7:50pm UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/2 "2021-11-14T19:50:59Z")

</div>

What are your use cases exactly?  
For example are you

1. Trying to install the tracking script with Google Tag Manager? [Installing the tracking script | Mautic](https://docs.mautic.org/en/setup/install-mautic-tracking-script)
2. Or send Mautic form submit events to data layer?

I may be able to help with #1 above.

---

<div class="post-metadata">

**Author:** ![mohammad01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mohammad01/32/543_2.png) [@mohammad01](https://forum.mautic.org/u/mohammad01)\
**Post date:** [November 16, 2021, 6:39am UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/3 "2021-11-16T06:39:09Z")

</div>

Hi;  
Here is my scenario:

1. Update custom field to show user paid status (trial or paid)
2. Create Mautic form
3. When user login to website if his/her status is trial show the form to him (by Google Tag Manager)
4. In Mautic I can trigger (like +2 point and change user segment) if the form submit
5. In Mautic get report who submitted the form and who just left the form.  
is it possible?  
Thanks

---

<div class="post-metadata">

**Author:** ![ledzee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ledzee/32/4252_2.png) [@ledzee](https://forum.mautic.org/u/ledzee)\
**Post date:** [November 17, 2021, 7:13am UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/4 "2021-11-17T07:13:59Z")

</div>

Hello, it looks like you are trying to render a Mautic form on a webpage if based on the user profile on the website. I do think it is possible, not sure if it is the best way to do that though.  
Everything you mentioned does sound possible. You might not even need GTM for this use case.  
I am sorry I am not able to help with the specifics in this case. Good luck! And I would be eager to know how it went.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [December 3, 2021, 2:44pm UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/5 "2021-12-03T14:44:57Z")

</div>

I agree: This can easily be done through Mautic Dynamic Web content, not GTM 🙂

---

<div class="post-metadata">

**Author:** ![mohammad01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mohammad01/32/543_2.png) [@mohammad01](https://forum.mautic.org/u/mohammad01)\
**Post date:** [December 5, 2021, 9:18am UTC](https://forum.mautic.org/t/how-to-connect-mautic-with-google-tag-manager/21597/6 "2021-12-05T09:18:24Z")

</div>

I would like to show specific forms or modal to users, base on segment.  
after show the form or modal to user is it possible change user segment automatically?  
for example:  
form 1 —\> for user in segment 1 ------\> change user segment to segment 10  
form 2 —\> for user in segment 2 ------\> change user segment to segment 11  
thanks.
