From 4b067fe51dc8708e3c2911dadeae4f728fa19d4f Mon Sep 17 00:00:00 2001 From: bensonpaul Date: Thu, 29 Aug 2024 17:43:43 +0530 Subject: [PATCH] Modified code to push to data Layer --- static/js/main-new.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/main-new.js b/static/js/main-new.js index 8b70750..8a9e192 100644 --- a/static/js/main-new.js +++ b/static/js/main-new.js @@ -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);