Y
Y
Yura Komarov2020-10-23 16:20:51
Google
Yura Komarov, 2020-10-23 16:20:51

What js code should i write when setting google goals?

Hello.
There is a code in the header of the site

<script async src="https://www.googletagmanager.com/gtag/></script>
<script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', '---------------');
</script>


The question is, what code do I need to add to the js file where the form is submitted to track the GA (google analytics) target called orderSend .
Thank you all in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
reinmaker90, 2020-10-23
@reinmaker1990

I think the google documentation has the answer to your question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question