Embedding Customizable Form Tracking Script in Marketing Engine Landing Page
Last updated
Was this helpful?
Last updated
Was this helpful?
This article shows how to embed a JavaScript snippet in a Marketing Engine landing page to send form submissions to a dynamic webhook URL.
You want to track submissions of different forms across various landing pages, sending the collected data to different webhook endpoints. This script is configurable for each page by simply changing two variables.
Paste the following code into an HTML block on your landing page:
Set landing_form_id
:
Replace the value of landing_form_id
with the actual form ID for the landing page you're working on.
Set webhookURL
:
Replace the placeholder webhook URL with your actual endpoint (e.g., Zapier, webhook.site, internal server).
Paste the Script:
Add the complete <script>
block into an HTML section of the landing page using the editor’s embed block.