analytics.js
function set (protocol) {
  try {
    define(window.location, 'protocol', {
      get: function () { return protocol; }
    });
  } catch (err) {
    mockedProtocol = protocol;
  }
}
function set (protocol) {
  try {
    define(window.location, 'protocol', {
      get: function () { return protocol; }
    });
  } catch (err) {
    mockedProtocol = protocol;
  }
}
function set ( protocol ) { try { define ( window . location , 'protocol' , { get : function ( ) { return protocol ; } } ) ; } catch ( err ) { mockedProtocol = protocol ; } }
Sets the protocol

@param {String} protocol
Sets the protocol