If you want to send your form data to a Google Sheet, the article you are looking for is this one!
On the Events page, once you have already created an Event trigger, click on Add action > Request > Send data to.
On the Action configuration screen, fill the informations.
- Request name: will be used to retrieve success and failed response afterwards (How to build a success/error screen).
- Method: GET or POST depending on the existing webservice on your website or documentation provided by the partner you need to send these informations to.
- Action URL: URL destination where data will be sent (this URL is either an URL from your site or one coming from a webservice).
- Form ID: Select in the list the Form ID you want to sent the data. They will be sent as parameter or in the payload depending on the method chosen in the previous step.
Note: Some integration with marketing automation solution already exists (Klaviyo, Salesforce, Actito, etc). Please contact your CSM for more information.
Use case: Send data to a URL from your site
Let’s take a concrete example.
You have a Contact page on your site and you want to display a pop-up encouraging your visitors to submit a contact request at different times during their visit to the site.
Simply indicate the URL already existing on your site, which is used to collect the form data on the Contact page.
In order to properly collect the form data filled by your users, it is important that you send the data to the right URL, and that the different fields of your form widget have the same name as the fields on your Contact page.
Don’t know what URL collects the data from your Contact page and how you should name your widget form fields so that they match the existing ones on your Contact Page? The following section explains how to identify how the form works on your site.
Identify the current settings of one of your existing forms on your site
- Send an email subscription thanks to your existing system with console opened (Windows/Linux: Press Control + Shift + J. Mac: Press Command + Option + J.).
- In network, Click on the element just sent.
- In the header, you can find the Request URL and the method. All you have to do is copy them, and paste them in the “Add action” pop-in when you create your event.
- In the payload, you will find the data to be sent
The name of the field sent in the request is the name entered in “Form Settings” > “Form element Name”. Make sure each of your form element name matches the name of the field sent in the request.
Here is an exemple of a POST request :
Note: The request sent might have an error/been blocked as your Website might have CORS policies on the simulation in the widget.