Skip to content

Commit

Permalink
Update GTM url
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed May 23, 2024
1 parent a4f09ad commit 0d06ae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def create
flash[:notice] = t(:preferences_saved_html, scope: 'settings')
end

redirect_to request_path
redirect_to request_path || root_path
end

private
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Application < Rails::Application
config.feedback_url = ENV.fetch('FEEDBACK_URL', '#FEEDBACK_env_var_missing')
config.signup_url = ENV.fetch('SIGNUP_URL', '#SIGNUP_env_var_missing')
config.tracking_id = ENV.fetch('TRACKING_ID', '#TRACKING_ID_env_var_missing')
config.js_url = "https://www.googletagmanager.com/ns.html?id=#{config.tracking_id}"
config.js_url = "https://www.googletagmanager.com/gtag/js?id=#{config.tracking_id}"

# Contentful
config.contentful_space = ENV.fetch('CONTENTFUL_SPACE', credentials.dig(:contentful, :space))
Expand Down

0 comments on commit 0d06ae6

Please sign in to comment.