function get_wlh_key( wlh_array, key )
{
var result = null;
wlh_array.forEach(function(element, index, array) {
let pair = element.split('=');
if (pair[0] == key) {
result = pair[1];
}
});
return result;
}
var
ls = location.search.slice(1),
splitted = ls.split('&');
console.log( get_wlh_key(splitted, 'utm1') );
console.log( get_wlh_key(splitted, 'utm2') );