Skip to content

Commit

Permalink
Add form success events for fb
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 27, 2023
1 parent 2fa7e0d commit f6a7c8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vue-frontend/src/components/contact/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions vue-frontend/src/components/contact/ContactFormFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f6a7c8f

Please sign in to comment.