Pardot form key events (formerly know as conversions) tracking

To add key events (formerly know as conversions) tracking to your Pardot form, you can add following code to the "Thank you code" section.

You can use the same code for standalone landing pages and forms that are embedded on a website via an iframe.

Please change the key event (formerly know as conversion) name and the form name variable after copying the code.

<script type="text/javascript">
var conversionEvent = 'commercial_request';
var formName = 'Pardot_form_name';
</script>

Possible values for the "conversionEvent" variable:

commercial_request
demo_request
event_registration
newsletter_subscription
resource_request
support_request
webinar_registration

Find out more about our Google Analytics 4 conversion setup
Make sure that you have no quotation marks in the eventLabel value (Oct'19 -> Oct 19 / L'expérience -> L expérience).

How to add a redirect

If you want to add a redirect after the form submission, you can add an additional redirectURL variable.

3 seconds after the form was submitted, the visitor is redirected to the redirect URL (thank you page). During this time, the form submission event is sent to Google Analytics and the ad platforms.

It's not recommended to use redirects to PDF files. Please use it only for thank you pages.
<script type="text/javascript">
var conversionEvent = 'commercial_request';
var formName = 'Pardot_form_name';
var redirectURL = 'https://www.sdworx.com';
</script>

Depending on the language of the landing page, you can add following info to the "Thank You Content" area:

Thank you for submitting the form. You will be redirected within 3 seconds.
Please click here if you are not automatically redirected.
Bedankt voor het verzenden van het formulier. U wordt binnen 3 seconden doorverwezen.
Klik hier als u niet automatisch wordt doorverwezen.
Merci d'avoir envoyé le formulaire. Vous serez redirigé dans les 3 secondes qui suivent.
Cliquez ici si vous n'êtes pas automatiquement redirigé.
Vielen Dank für das Absenden des Formulars. Sie werden innerhalb von 3 Sekunden weitergeleitet.
Bitte klicken Sie hier, falls Sie nicht automatisch weitergeleitet werden.


How did we do?


MarTech Academy (opens in a new tab)

Powered by HelpDocs (opens in a new tab)