Frequently I need to add a contact form to a website. I find Contact Form 7 very easy to setup and full of features. For example, if you have Google Analytics Page Tracking code installed, you can track form submissions.

Track Form Submissions

First view your page source and make sure you have the Google code installed.
Then install this code in your header.
document.addEventListener( 'wpcf7mailsent', function( event ) {
ga('send', 'event', 'Contact Form', 'submit');
}, false );

Every time someone submits a contact form, you can now track it in Google Analytics without needing to make a separate thank you page. This is very useful if you are running an ad campaign.

If you don’t have a separate header page or have trouble adding the code, you can use a plugin like GA Google Analytics to add the code into your header.


Another reason Contact Form 7 is very good is the easy ability to add reCAPTCHA to your form. This is the checkbox that ask if you are a robot and helps prevent you from getting spam.

Click Contact on left side side of your dashboard in WordPress and then on Integration. Here you need to add your Google site key and secret key.  If you don’t have them, go to Google’s reCAPTCHA page and get them.

Then all you have to do is add the short code [recaptcha] to your contact form.

Categories: Plugins