• Resolved jekson557

    (@jekson557)


    У меня возникла проблема, не получается добавить ивент на успешную отправку формы, я использую метод:
    <script>
    html_forms.on(‘success’, function(formElement) {
    dataLayer.push({‘event’:’Form_Send’});
    });
    </script>
    Он не работает, может я что то делаю не так?

    • This topic was modified 4 years, 5 months ago by jekson557.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • I don’t see any Google Analytics script added to your site.
    Do you have any Analytics tracking at all activated? How and where?

    Thread Starter jekson557

    (@jekson557)

    Все есть, проблем не вижу.
    Код Analytics установлен через GTM

    https://prntscr.com/uz6qia

    • This reply was modified 4 years, 5 months ago by jekson557.
    • This reply was modified 4 years, 5 months ago by jekson557.

    Thanks, I had overlooked that.
    Where can I find / test the HTML forms form?

    Can you add a console.log to see if the code is executing at all

    <script>
    html_forms.on(‘success’, function(formElement) {
    console.log(‘HTML form submitted’);
    dataLayer.push({‘event’:’Form_Send’});
    });
    </script>

    Thread Starter jekson557

    (@jekson557)

    1) The form is in the footer
    https://prntscr.com/uz7g0s
    2) Added your script

    Thanks, I don’t see anything in console when I submit the form. Where / how did you add my script? Am I overlooking that as well?

    Thread Starter jekson557

    (@jekson557)

    https://prntscr.com/uz84fx
    Добавил через GTM

    я вижу console log
    https://prntscr.com/uz8816

    Спасибо что уделяете много времени моей проблеме!

    • This reply was modified 4 years, 5 months ago by jekson557.
    • This reply was modified 4 years, 5 months ago by jekson557.
    Thread Starter jekson557

    (@jekson557)

    I can give you access to GTM

    From your screenshot it’s not clear to me where I can see the JS code being loaded when I inspect the source code of your site and I still con’t get the console log message when I test it myself. Where / how did you add this code exactly?

    Thread Starter jekson557

    (@jekson557)

    после отправки формы
    https://prntscr.com/v15wmy

    Event не предается в аналитику….
    я не знаю в чем проблема, за 4 года это первый плагин с которым не удается найти решение

    • This reply was modified 4 years, 4 months ago by jekson557.

    Hi,

    What I mean is, where exactly can I see the tracking code that you added.

    As we can see the console log that you added to the script we know for sure that the event is triggered, but there must be some issue with the dataLayer.push({‘event’:’Form_Send’}); / tracking script itself. That is why I want to inspect the code on your actual site. Where can I find it in your source code?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Tracking events through GTM’ is closed to new replies.