Tie legacy analytics ID to environment

This commit is contained in:
Liam Morley 2021-11-23 15:39:55 -05:00
parent 48f2d64c71
commit 3e15194eff
3 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,6 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception, prepend: true
before_action :set_google_analytics_id
def verify_admin
@ -16,4 +17,9 @@ class ApplicationController < ActionController::Base
end
end
private
def set_google_analytics_id
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
end
end