mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
Externalize Hotjar tracking code to an environment variable
This commit is contained in:
parent
f6e6fb2b2d
commit
f81874d082
5 changed files with 12 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ class SqmApplicationController < ActionController::Base
|
|||
before_action :set_schools_and_districts
|
||||
before_action :authenticate_district
|
||||
before_action :set_google_analytics_id
|
||||
before_action :set_hotjar_id
|
||||
|
||||
private
|
||||
|
||||
|
|
@ -39,4 +40,7 @@ class SqmApplicationController < ActionController::Base
|
|||
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
|
||||
end
|
||||
|
||||
def set_hotjar_id
|
||||
@hotjar_id = ENV['HOTJAR_ID']
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue