N
N
nut7072016-07-13 15:39:57
Ruby on Rails
nut707, 2016-07-13 15:39:57

How to implement YandexMetrika and GoogleAnalytica on rails 4 with turbolinks?

There was a task to add analytics and metrics to the ruby ​​application.
How to do it right?
Okay, for the Google stray, there is still the google-analytic-rails gem, but there have been no commits in the yandex-metic-rails repository since 2013.
Will everything work if I just add the scripts to the end of my application.html?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chronic 86, 2016-07-14
@nut707

Why don't you like adding javascript, gem is the same javascript just out of the box. In addition, using the gem if you are not supposed to work with the Yandex API is not very advisable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question