Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

function getParameter(theParameter) { var params = window.location.search.substr(1).split('&'); for (var i = 0; i < params.length; i++) { var p = params[i].split('='); if (p[0] == theParameter) { return decodeURIComponent(p[1]); } } return ''; } var utm_fields = document.querySelectorAll('[name*="utm_"]'); for(var i = 0; i < utm_fields.length; i++){ utm_fields[i].value = getParameter(utm_fields[i].getAttribute('name')); }