Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1397781

    Hi guys,

    I’m trying to set up tracking for a website.

    I’m getting a bit desperate with your form ;-)

    1. tracking after sending the form
    You have specified ‘onclick’ as event on the documentation page. But this triggers the form to be sent – even if e.g. a mandatory field was not filled in and in reality the form was not sent. In Analytics, Google displays a submit – even though it was not a submit.

    2. identification of forms
    Unfortunately you don’t ask for the possibility to identify a form. Why not? Purely from a logical point of view, the variable FromID is sent with the push to GA4. This is always empty. Why can’t you create a field in the form for identification? Should be easy for you and then pass the content to the push FormID. The issue has been raised several times in the forum for years.

    Thanks for the feedback on both points.

    BR
    T

    • This topic was modified 1 year, 10 months ago by cktanju.
    #1398005

    Hey cktanju,

    Thank you for the inquiry.

    1.) Have you tried tracking a form_submit event instead of the click? Tracking a click event is not accurate because it assumes that the form will be sent successfully every time the button is clicked. You can still use it, but you have to extend the function in the onclick attribute and create additional checks or conditions and make sure that the form is validated before actually calling the analytics function.

    // https://support.google.com/analytics/answer/9216061?hl=en

    2.) If you use the form_submit event as described above, you can send additional parameters such as the ID of the form. Unfortunately, this kind of customization are beyond the scope of the support. You may need to hire an SEO consultant or a web agency in order to properly implement the trackers.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.