analytics.js
function convert(key, value) {
  key = camel(key);
  if (is.string(value)) return key + '_str';
  if (isInt(value)) return key + '_int';
  if (isFloat(value)) return key + '_real';
  if (is.date(value)) return key + '_date';
  if (is.boolean(value)) return key + '_bool';
}
function convert(key, value) {
  key = camel(key);
  if (is.string(value)) return key + '_str';
  if (isInt(value)) return key + '_int';
  if (isFloat(value)) return key + '_real';
  if (is.date(value)) return key + '_date';
  if (is.boolean(value)) return key + '_bool';
}
function convert ( key , value ) { key = camel ( key ) ; if ( is . string ( value ) ) return key + '_str' ; if ( isInt ( value ) ) return key + '_int' ; if ( isFloat ( value ) ) return key + '_real' ; if ( is . date ( value ) ) return key + '_date' ; if ( is . boolean ( value ) ) return key + '_bool' ; }
Convert to FullStory format.

@param {string} trait
@param {*} value
Convert to FullStory format .