Googletagmanager with Turbolinks

前端 未结 4 979
攒了一身酷
攒了一身酷 2020-12-19 08:04

Can someone explain how should we properly integrate Googletagmanager with Turbolinks?

On normal pages we just copy/paste this code immediatelly after after the open

4条回答
  •  青春惊慌失措
    2020-12-19 08:51

    Implement google tag manager with turbolink 5. copy the code below and paste inside the head.

            
            <% if Rails.env.production? %>
            
            <% end %>
            
    

提交回复
热议问题