A
A
Alexey2021-03-02 18:56:30
JavaScript
Alexey, 2021-03-02 18:56:30

How to set up link click tracking on Tilde for Google Analytics?

It is necessary to set as a goal in Google Analytics a click on a phone number (link tel: +79991234567) for a site on the Tilda platform.

For Yandex Metrica, this is done very simply:

1. We take the code:

<script type="text/javascript"> 
  $("[href='tel:+79991234567']").click(function() {
  yaCounter12345678.reachGoal('12345'); return true;
  });
</script>


2. Install on the page in Tilda using the standard "Insert HTML code" function. In the code , we write
the phone number, Metrica counter number and target id.

3. In Yandex.Metrica, set the target of the JavaScript event with this data. Everything is working.

How to repeat this for Google Analytics? Available instructions on the web offer to change the page code, you can’t do this in Tilda, you can only insert an additional one. There is also no great desire to fool around with the Tag Manager. I would like to get by with inserting code on the page and entering the necessary parameters into the GA goal. Tell me how to do it right.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question