- if Rails.env.production?
  javascript:
    !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
      analytics.load("#{ENV['ECHO_TRELLO_SEGMENT_WRITE_KEY']}");
      analytics.page()
    }}();

  - if current_user.present?
    javascript:
      analytics.identify(#{current_user.id}, {
        name: '#{current_user.full_name}',
        nickname: '#{current_user.nickname}'
        uid: '#{current_user.uid}'
      });

- if Rails.env.production?
  javascript:
    !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
      analytics.load("#{ENV['ECHO_TRELLO_SEGMENT_WRITE_KEY']}");
      analytics.page()
    }}();

  - if current_user.present?
    javascript:
      analytics.identify(#{current_user.id}, {
        name: '#{current_user.full_name}',
        nickname: '#{current_user.nickname}',
        uid: '#{current_user.uid}'
      });

Fix missing comma when setting up Segment
Fix missing comma when setting up Segment

dennmart/echo_for_trello,dennmart/echo_for_trello,dennmart/echo_for_trello