_satellite["_runScript9"](function(event, target, Promise) { try{ // Get an array of all forms loaded on the page var forms = document.querySelectorAll('form'); for(var i = 0; i < forms.length; i++){ var form = forms[i]; // Verify if the form has a data-form-type attribute if(form.getAttribute('data-form-type')) { // If it does, add a data-di-form-id and data-di-form-track attribute form.setAttribute('data-di-form-id', form.getAttribute('data-form-type')); form.dataset['diFormTrack'] = true; } else if(form.getAttribute('name')){ // If it doesn't have a data-form-type attribute, copy the name into a data-di-form-id attribute form.setAttribute('data-di-form-id', form.getAttribute('name')); form.dataset['diFormTrack'] = true; } } } catch (e) { } });