mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-07 21:48:13 -08:00
Add before action to set analytics id
This commit is contained in:
parent
bb032ebd31
commit
760d038670
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
before_action :set_google_analytics_id
|
||||
|
||||
def set_google_analytics_id
|
||||
@google_analytics_id = ENV['GOOGLE_ANALYTICS_ID']
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue