validation - How do I correctly Implement an event on successful form Submission using Google Tag Manager and Sitecore's Web Forms for Marketers? -


I am trying to track successful form presentation using an event in Google Analytics via Google Tag Manager . When users submit forms, my current setup is successfully tracked, however, this incident also fires when the form submission is invalid and does not submit (i.e. the user has not filled out all the necessary fields, on the submit button Click to try to validate the form, but comes back with the user instead of submitting errors) to my listener Number feature Czech validation, which should prevent theoretically firing the tag, if form submission is restricted, it is not clear error.

The form has been created in question with Sitakr's web form in the market. My colleagues have faced the same unresolved issues with their WFFM forms.

This is specifically used for gate content so that only those users can access content resources filling up the form. So for example if I go to www.mydomain.com/resource, then I will be directed at www.mydomain.com/form, where I fill my all information properly and submit it, Which I was originally intended to see at www.mydomain.com/resource

This is my setup:

Tag 1

  • Name: Form Submission Listener
  • Type: send form to the list
  • Wait for the tag: checked
  • Maximum wait time: 2000 milliseconds
  • check
  • Name: Event Form Submissions < / Li>
  • Type: Universal Analytics
  • Tracking ID: UA -...
  • Enable Display
  • Category: Form
  • < Li> Action: Submission
  • Label: {{Form Resource URL}
  • }
  • Non-contact Hit: Incorrect
  • No more settings
  • No advanced set No firing rule: {{event}} equals gtm.formSubmit

Theoretically check verification check box should be prevented from firing if the form has not been submitted successfully, but cases of this form It does not have it. Whether or not this tag presents no fire.

Sorry I can not link to the form because it is for a customer and behind security.

We were able to get answers to our question via Sitcom forums,

From the Sitcom:

The web form module provides double-level validation, 1-client verification, 2-server verification.

By default, the Client Authentication Required field is disabled for the VDIC. Therefore, when you press submit, the form is posted on the server, and returns with the verification error. This is a possible reason that Google Analytics believes that it is submitted as a form.

  • Find the following items in the master database:
  • Save the item and publish / Sitcom / System / Module / Webber Marketers / Settings / System / System.
  • Check if the problem is correct or not.

It fixed the problem for all our text-based areas, did not fix this problem for a checkbox on this form. I have followed this with Sitkor, but I thought I am updating this time here.

I was able to use AA macros only with checkbox balance and the original firing rule in Google Tag Manager so that the checkbox was not checked, the event did not break.

I created a custom javascript macro that was checked on the radio button (not sure that it is best, but it works), and added a new condition in my original form submission rule: {{ Radio button check}} is

macro:

  function () {var radionem = "radiobutton"; Try {var button = document.getElementsByName (radioName); (Var i = 0; i & lt; buttons.length; i ++) {if (button [i].) {Return true; }}} Hold (e) {} return false; }  

EDIT: Sitcom came back to me about the checkbox issue

From the sitcom:

Currently the checkbox field type is not client-side validation. I have registered it as a bug for the WFFM module.

They also told me that this is not something which will be fixed by the pass-through period, so I need to continue using the GTM solution for the check box. Field


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -