I have a Google Tag Manger container that contains a Facebook Pixel injector tag and a regular form submission tag (with standard form submission trigger). However, when the submit button of a form is clicked (resulting in invalidation thus no submission), the gtm.formSubmit
event is fired with the elementUrl
as 'https://www.facebook.com/tr/'
. This event is captured by Tag Manager's standard Form Submission trigger, thus resulting in a false-positive form submission.
I had to confirm the Pixel as the cause by pausing the injector tag and testing. Of course the tag was not triggered.
I don't understand why the Pixel is firing this event on submit button click.
I would normally circumvent the issue by submitting the form via AJAX with a custom event name, but the nature of the site requires the forms navigate the user to a separate page. If I really can't prevent the Pixel from firing the event, I suppose I could use JavaScript to post via AJAX and manually navigate to a markup-stored URL, but I'd rather avoid that.