Problem
The public enquiry form is hosted on app.tourwriter.com, and the successful enquiry creation is handled through Tourwriter’s API connection. As a result, the client’s website cannot reliably detect when an enquiry has been successfully created.
The client needs to trigger generate_lead event only after a successful enquiry creation, rather than simply when the user submits the form.
Requested Solution
Add an optional Success Redirect URL configuration to public enquiry forms.
For example:
Once the enquiry has been successfully created, the user would automatically be redirected to the configured URL.
Expected Behaviour
User completes and submits the enquiry form.
Tourwriter attempts to create the enquiry.
If the enquiry is successfully created: redirect the user to the configured Success Redirect URL.
If enquiry creation fails: do not redirect; retain the existing error behaviour.
If no Success Redirect URL is configured, the form should continue to behave as it does currently.
Customer Benefit
This allows clients to use their own website confirmation page to trigger GTM/GA4 conversion tracking, ensuring that generate_lead is recorded only for genuine, successfully created enquiries.
Created by Sajjan Sawant
·