Externalize Hotjar tracking code to an environment variable

This commit is contained in:
Liam Morley 2021-11-29 11:52:52 -05:00
parent f6e6fb2b2d
commit f81874d082
5 changed files with 12 additions and 3 deletions

View file

@ -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