Integrate Contact Form 7 with Lasso

Integrate Contact Form 7 with Lasso

Note: You will need the following before you begin:

  • Domain Account ID
  • Lasso UID
  • Client ID
  • Project ID
  • Question and Answer IDs if applicable
  • Lasso Plugin (this must be provided to you by your Lasso Client Director)
  • Contact Form 7 Plugin

1 – On your WordPress site, install the Contact Form 7 and Lasso plugins.

For reference, please see:

2 – On the WordPress home page, click Appearance and select Customize.


3 – Click Lasso Settings.


4 – In the Lasso Analytics ID field, enter the Domain Account ID.


5 – Exit Appearance.

6 – On the WordPress home page, click Contact and select Contact Forms.


7 – Click on the name of the form you wish to integrate with Lasso.


8 – On the Form tab, manually map your Lasso fields to the Contact Form 7 fields.


Mapping Examples


Full Form Example (the IDs from Lasso are used in the form code as highlighted):


9 – Click on the Additional Settings tab.

10 – Enter the following code in the Additional Settings dialogue box and update the highlighted text with the corresponding values from your Lasso account.


demo_mode: on


  • The  ThankYouEmailTemplateId snippet is the automatic reply email sent from the project.

11 – To redirect to another URL after submission, enter the following code (replacing with the appropriate URL) before the </body> tag at the end of the code.

document.addEventListener( 'wpcf7mailsent', function( event ) {
location = '';
}, false );



<?php wp_footer(); ?>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = '';
}, false );


Contact Form 7 is designed to send form information by email. Depending on your website hosting provider, you may experience an issue with this functionality, i.e. form spinning rather than submitting. To resolve this issue, please ensure that you have added the demo_mode: on snippet

If you prefer not to disable the email function so that form information is still sent via email, please see Contact Form 7 email troubleshooting tips: