From f6a7c8f46e35f96b7975023b428c5ab26fb542ee Mon Sep 17 00:00:00 2001 From: sumita Date: Mon, 27 Feb 2023 17:54:37 +0530 Subject: [PATCH] Add form success events for fb --- vue-frontend/src/components/contact/ContactForm.vue | 1 + vue-frontend/src/components/contact/ContactFormFooter.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/vue-frontend/src/components/contact/ContactForm.vue b/vue-frontend/src/components/contact/ContactForm.vue index 4e882b675..13d110c05 100644 --- a/vue-frontend/src/components/contact/ContactForm.vue +++ b/vue-frontend/src/components/contact/ContactForm.vue @@ -390,6 +390,7 @@ export default { .post(config.API_BASE + "/api/send-contact-mail", formData) .then(() => { this.showLoader = true; + fbq("track", "contact_form_submit_success"); if (this.contactType == CONTACT_BY_CHAT_OR_MAIL) { setTimeout(() => { this.showSuccessMessage(); diff --git a/vue-frontend/src/components/contact/ContactFormFooter.vue b/vue-frontend/src/components/contact/ContactFormFooter.vue index 6c3a70cf4..f72603e2c 100644 --- a/vue-frontend/src/components/contact/ContactFormFooter.vue +++ b/vue-frontend/src/components/contact/ContactFormFooter.vue @@ -403,6 +403,7 @@ export default { .post(config.API_BASE + "/api/send-contact-mail", formData) .then(() => { setTimeout(() => { + fbq("track", "footer_form_submit_success"); this.showSuccessMessagePopup = true; this.showLoader = false; }, 1000);