صفحه‌ای که درخواست کرده‌اید، درحال حاضر به زبان شما در دسترس نیست. می‌توانید با استفاده از قابلیت ترجمه داخلی Google Chrome، فوراً هر صفحه وبی را به زبان موردنظرتان ترجمه نمایید.
/tagmanager/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
Form Submission Trigger not firing
0
Form submission trigger is not firing. When set to have no validation, I cannot get the form submission trigger to fire. We use forminator for many of our forms, so the form exists on the page and is generated from a short code.
Details
Pinned
Locked
Latest Update Latest Updates (0)
Relevant Answer Relevant Answers (0)
All Replies (3)
Relevant Answer
you can create your own trigger

custom hrml tag with trigger page loaded for the site where your form is

<script>
document.querySelector(".forminator-custom-form").addEventListener("submit", function(event){

dataLayer.push('event':"forminator")

});
</script>

than you can make a custom trigger with the event name = forminator and add it to the tag

if you have multiple forms on the site you can add to each with a loop

<script>
(function(){
var formitrigger = document.querySelectorAll(".forminator-custom-form");
for(i=0;i<formitrigger.length;i++)
formitrigger[i].addEventListener("submit", function(event){

dataLayer.push('event':"forminator")

});
})();
</script>

As example i for own trigger. it should work. The name is not in the event only the id of the form wich include the numer. Iam not shure if it allways the case.
marked this as an answer
Relevant Answer
I would rather not have to create a custom trigger. There is a trigger for form submission on Google Tag manager and that's how I create all of my triggers.
marked this as an answer
Relevant Answer
The reason why the form trigger is not working is because:

1) Either the submit event is cancelled or never dispatched, thus GTM does not know that the button click is a form
2) or either it never reaches the document node where GTM's listener is waiting for the event

The solutions to this issue are:
1) to talk with your developers and find a way to send the submit event in order for the Form Trigger to work properly
2) or ask them to put a DataLayer Push whenever a successful form is submitted

For the second solution you need to send this piece of code to your developers and ask them to fire it whenever a form is successfully submitted:

<script>
  window.dataLayer.push({
    'event' : 'formSubmit.Success'
    })
</script> 


This code will dispatch an event, which you can use as a Custom Event Trigger to fire your tag.

Other (less robust solutions) include firing the tag on a success page or on a View Element trigger when the success message appears.
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/tagmanager/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Removed from Updates
Marked as Recommended Answer
Marked as Update
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
Known Issue
Fixed
Marked Fixed
Unmarked Fixed
Unable to mark fixed
Unable to unmark fixed
/profile/0
false
جستجو
پاک کردن جستجو
بستن جستجو
برنامه‌های Google
منوی اصلی
Search Help Center
true
102259
false