Remove hotjar

pull/1/head
rebuilt 3 years ago
parent 51d5d72730
commit dd94b283fa

@ -2,13 +2,8 @@
class ApplicationController < ActionController::Base
before_action :set_google_analytics_id
before_action :set_hotjar_id
def set_google_analytics_id
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
end
def set_hotjar_id
@hotjar_id = ENV['HOTJAR_ID']
end
end

@ -1,11 +0,0 @@
<!-- Hotjar Tracking Code for Beta site -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:<%= hotjar_id.to_json.html_safe %>,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>

@ -19,7 +19,6 @@
<%= javascript_include_tag 'application', 'data-turbo-track': 'reload' %>
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
<%= render partial: 'layouts/hotjar', locals: { hotjar_id: @hotjar_id } %>
</head>
<body>

@ -16,7 +16,6 @@
<%= javascript_include_tag 'application', 'data-turbo-track': 'reload' %>
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
<%= render partial: 'layouts/hotjar', locals: { hotjar_id: @hotjar_id } %>
</head>
<body>

Loading…
Cancel
Save