const getUtmParameter = (sParam) => {
const url = window.location.search.substring(1);
const urlVariables = url.split('&');
for (let i = 0; i < urlVariables.length; i++) {
const variables = urlVariables[i].split('=');
if (variables[0] === sParam) {
return variables[1]
}
}
};
const utm = getUtmParameter('utm_source');