analytics.js
function createProductTrack(track, properties) {
  properties.currency = properties.currency || track.currency();
  return new Track({ properties: properties });
}
function createProductTrack(track, properties) {
  properties.currency = properties.currency || track.currency();
  return new Track({ properties: properties });
}
function createProductTrack ( track , properties ) { properties . currency = properties . currency || track . currency ( ) ; return new Track ( { properties : properties } ) ; }
Creates a track out of product properties.

@api private
@param {Track} track
@param {Object} properties
@return {Track}
Creates a track out of product properties .