mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
Tie legacy analytics ID to environment
This commit is contained in:
parent
48f2d64c71
commit
3e15194eff
3 changed files with 9 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue