Skip to content

Commit

Permalink
Modified code to push to data Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed Aug 29, 2024
1 parent 93f6a86 commit 4b067fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ $('#contact-submit-live').prop('disabled', 'disabled');
window.dataLayer.push({
'event': 'contactformSubmit',
'formData': {
'contactName': document.getElementById('quickname').value,
'contactEmail': document.getElementById('quickemail').value,
'contactSubject': document.getElementById('quicksubject').value,
'contactMessage': document.getElementById('quickmessage').value
'contactName': first_name,
'contactEmail': email,
'contactSubject': subject,
'contactMessage': message
}
});
console.log(window.dataLayer);
Expand Down

0 comments on commit 4b067fe

Please sign in to comment.