mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Remove hotjar
This commit is contained in:
parent
51d5d72730
commit
dd94b283fa
4 changed files with 0 additions and 18 deletions
|
|
@ -2,13 +2,8 @@
|
||||||
|
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
before_action :set_google_analytics_id
|
before_action :set_google_analytics_id
|
||||||
before_action :set_hotjar_id
|
|
||||||
|
|
||||||
def set_google_analytics_id
|
def set_google_analytics_id
|
||||||
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
|
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_hotjar_id
|
|
||||||
@hotjar_id = ENV['HOTJAR_ID']
|
|
||||||
end
|
|
||||||
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' %>
|
<%= javascript_include_tag 'application', 'data-turbo-track': 'reload' %>
|
||||||
|
|
||||||
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
|
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
|
||||||
<%= render partial: 'layouts/hotjar', locals: { hotjar_id: @hotjar_id } %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
<%= javascript_include_tag 'application', 'data-turbo-track': 'reload' %>
|
<%= javascript_include_tag 'application', 'data-turbo-track': 'reload' %>
|
||||||
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
|
<%= render partial: 'layouts/google_analytics', locals: { google_analytics_id: @google_analytics_id } %>
|
||||||
<%= render partial: 'layouts/hotjar', locals: { hotjar_id: @hotjar_id } %>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue