K
K
kvoruswave2016-01-25 15:40:10
Yandex.Metrica
kvoruswave, 2016-01-25 15:40:10

How to insert Yandex metric in Laravel?

Tell me where to install the Ya.Metrika code in Laravel?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrzej Wielski, 2016-01-25
@wielski

Maybe in a view?
Why write something in Laravel if you don't understand where to insert banal javascript code?

E
Eminence, 2020-05-08
@Eminence

your_domain/resources/views/welcome.blade.php
Metrics, Analytics and all goals are inserted here.

T
Timur Yessentayev, 2020-08-14
@Timures

For good, it's better in resources/views/layouts/app.blade.php (The main view template (in this case app) so that the metric code gets into each page)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question