How can I integrate Google Tag Manager into our forms?

  • leitestephane
    Perguntado em 13 de março de 2024 às 10:47

    Boa tarde,

    Necessito de integrar os tag de google tag manager nos códigos fontes dos nossos formulários. Seria possível ajudarem-nos a indicar onde e de que forma o poderemos fazer?

    Cumprimentos,
    Cecília Ferreira

  • Elbert_A Jotform Support
    Respondido em 13 de março de 2024 às 10:59

    Hi Cecília,

    Thanks for reaching out to Jotform Support. Unfortunately, our Portuguese Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. We don't have a direct integration with Google Tag Manager. However, you can track online form submissions using Google Analytics and add your Google Tag Manager:

    1. In Form Builder click on Add Form Element.
    2. In the Widgets tab search for Google Analytics and drag and drop it on your form.

    How can I integrate Google Tag Manager into our forms? Image 1 Screenshot 20

    Here's a guide about tracking forms with Analytics and Tag Manager. Also, if you want to track submissions, you can check out this guide about How to Track Online Form Submissions Using Google Analytics. Also, you can check this video for all steps.

    Give it a try and let us know if you are looking for something else.

  • leitestephane
    Respondido em 25 de março de 2024 às 07:48

    Hi Elbert,

    Thank you for your assistance. We tried your suggestion, but unfortunately, we were unsuccessful.

    The only thing I need is to introduce the Google Tag Manager codes into the HTML code of the forms (both in the head and body of each form). I really need your support and solution for this. Please note that these forms are intended to gather leads for our sales teams. With the new rules regarding personal data, if we don't take this action, we risk losing a lot of traffic and potential conversions.

    I am relying on your help to find a solution for this.

    Looking forward to hearing from you.

    Best Regards.

  • Neil Jotform Support
    Respondido em 25 de março de 2024 às 10:10

    Hi Cecília,

    Thanks for getting back to us. You may try to embed your form using the Source Code method, which allows you to customize your form even further and add the Google Tag Manager. Here's how to get the full source code of your form:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Publish.
    2. In the menu on the left side of the page, click on Embed.
    3. Now, select the Source Code option.

      How can I integrate Google Tag Manager into our forms? Image 1 Screenshot 30
    4. Click the Copy Code button to copy your form's code.
    5. If you'd like to host the form files on your server, you can download a compressed and refined version of the form with its separate CSS and JS files by clicking the Download Source Code button.

      How can I integrate Google Tag Manager into our forms? Image 2 Screenshot 41

    Reach out again if you have any other questions.