doctype html
html
  head
    title
      == content_for?(:title) ? yield(:title) : "Fabble"
    == content_for?(:stylesheet) ? yield(:stylesheet) : stylesheet_link_tag("dashboard", media: "all", "data-turbolinks-track" => true)
    == content_for?(:javascript) ? yield(:javascript) : javascript_include_tag("application", "data-turbolinks-track" => true)
    == content_for?(:ogp) ? yield(:ogp) : nil
    == csrf_meta_tags
  body
    == render "components/analytics"
    == render "layouts/header"
    == content_for?(:content) ? yield(:content) : yield
    == render "layouts/footer"
    == content_for?(:bottom) ? yield(:bottom) : nil
    - if Rails.env.development?
      hr
        == form_tag "/su" do
          == select_tag "user_id", options_from_collection_for_select(User.all, :id, :name)
          == submit_tag "su"
          == submit_tag "reset"

doctype html
html
  head
    title
      == content_for?(:title) ? yield(:title) : "Fabble"
    == content_for?(:stylesheet) ? yield(:stylesheet) : stylesheet_link_tag("dashboard", media: "all", "data-turbolinks-track" => true)
    == content_for?(:javascript) ? yield(:javascript) : javascript_include_tag("application", "data-turbolinks-track" => true)
    == content_for?(:ogp) ? yield(:ogp) : nil
    == csrf_meta_tags
  body
    == render "components/analytics"
    == render "layouts/header"
    == content_for?(:content) ? yield(:content) : yield
    == render "layouts/footer"
    == content_for?(:bottom) ? yield(:bottom) : nil
    - if ENV['GA_TRACKING_ID']
      script{async src=("https://www.googletagmanager.com/gtag/js?id=#{ ENV['GA_TRACKING_ID'] }")}
      javascript:
        window.dataLayer = window.dataLayer || [];
        function gtag() {
          dataLayer.push(arguments);
        }
        gtag('js', new Date());
        gtag('config', "#{ ENV['GA_TRACKING_ID'] }");

    - if Rails.env.development?
      hr
        == form_tag "/su" do
          == select_tag "user_id", options_from_collection_for_select(User.all, :id, :name)
          == submit_tag "su"
          == submit_tag "reset"

Add support for google tracking code
Add support for google tracking code

mozilla-japan/gitfab2,mozilla-japan/gitfab2,mozilla-japan/gitfab2