D
D
Daniil Sidorov2018-05-04 21:30:56
Yii
Daniil Sidorov, 2018-05-04 21:30:56

How to correctly connect Yandex Metrica to a yii2 site?

Hello. Now I include the js-file of the metric manually in each layout. But there are a lot of them and it's not very convenient. Is there a way to connect the metric "in one command" somewhere at the beginning of the application so that it is on all pages of the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2018-05-04
Hrebet @hrebet

in each layout

Layout (layout) you have only one, and you need to connect it in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question