# Google Tag Manager registers two conversions when using ajax

**URL:** <https://community.gravityforms.com/t/google-tag-manager-registers-two-conversions-when-using-ajax/18333>\
**Category:** Get Help\
**Tags:** google-tag-manager, google-analytics, ajax\
**Created:** [October 11, 2024, 9:10am UTC](https://community.gravityforms.com/t/google-tag-manager-registers-two-conversions-when-using-ajax/18333 "2024-10-11T09:10:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5f5a441bb5217476](https://avatars.discourse-cdn.com/v4/letter/u/90ced4/32.png) [@user5f5a441bb5217476](https://community.gravityforms.com/u/user5f5a441bb5217476)\
**Post date:** [October 11, 2024, 9:10am UTC](https://community.gravityforms.com/t/google-tag-manager-registers-two-conversions-when-using-ajax/18333/1 "2024-10-11T09:10:46Z")

</div>

We use a Gravity Form in an Elementor popup with ajax enabled. The popup is visible after pressing a button.

It works great, but in Google Tag Manager we register the form submit twice. So this gives a wrong calculation in conversions from the form. When we disable ajax, the problem is solved.

But then there is a new issue: when a visitor forgets to fill out a required field and presses submit, the page is reloaded, the popup is closed and they don’t see the error about a required field. They need to press the button again to open the form and see the error and nobody is going to do this.

The easiest fix would be to just enable Ajax so there is no page reload, but how can we fix the issue with Tag Manager registering form submit twice? To be clear: only one submission is registered within Gravity Forms submissions. It’s just that we register it twice because of ajax functionality.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [November 10, 2024, 9:11am UTC](https://community.gravityforms.com/t/google-tag-manager-registers-two-conversions-when-using-ajax/18333/2 "2024-11-10T09:11:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
